Max Weber said this quote

Tolstoi has given the simplest answer, with the words: ‘Science is meaningless because it gives no answer to our question, the only question important for us: What shall we do and how shall we live?' That science does not give an answer to this is indisputable. The only question that remains is the sense in which science gives ‘no’ answer, and whether or not science might yet be of use to the one who puts the question correctly.