Pretty much every single spiritual philosopher has said some version of that (I'm writing a book on this subject right now, heh):
The Buddha (from the Pali Canon, Vinaya Pitaka, Cullavagga 10:4):
“Writing is like a drug that weakens memory.”
and: “Do not go upon what has been acquired by repeated hearing; nor upon tradition; nor upon rumor... But when you yourselves know: 'These things are good; these things are not blameable; undertaken and observed, these things lead to benefit and happiness,' enter on and abide in them.”
Confucius (Analects 2:15):
“Learning without thought is labor lost; thought without learning is perilous.”
Lao Tzu (Tao Te Ching, Chapter 48):
“In the pursuit of learning, every day something is acquired.
In the pursuit of Tao, every day something is dropped.”
Jesus (Matthew 16:26):
“For what shall it profit a man, if he shall gain the whole world, and lose his own soul?”
Muhammad (Hadith, Sahih Muslim):
“The worst vessel to fill is the stomach; sufficient for the child of Adam are a few morsels to keep his back straight. If he must fill it, then one-third food, one-third drink, and one-third air.”
(This Hadith symbolically warns against excessive reliance on external consumption diminishing spiritual clarity and internal balance.)
Rumi (Masnavi):
“These outward forms are but dust and air;
Seek the reality beyond appearance and form.”
Krishna (Bhagavad Gita, 2:42-43):
“Those who are attached to pleasure and power, whose minds are drawn away by such things, have no capacity for absorption into higher states of awareness.”