Viktor E. Frankl said this quote

As to the causation, of the feeling of meaningless, one may say, albeit in an oversimplifying way, that people have enough to live by but nothing to live for; they have the means but no meaning.