Did you hear an old jackal howling when the night was fading?” “Yes, venerable sir.” “That old jackal is afflicted with a disease called mange.322 He cannot feel at ease whether he goes into a cave, or to the foot of a tree, or into the open air. Wherever he goes, wherever he stands, wherever he sits, wherever he lies down, there he meets with calamity and disaster. So too, bhikkhus, a bhikkhu here whose mind is overcome and obsessed with gain, honour, and praise does not feel at ease whether he goes into an empty hut, or to the foot of a tree, or into the open air. Wherever he goes, wherever he stands, wherever he sits, wherever he lies down, there he meets with calamity and disaster. So dreadful, bhikkhu, are gain, honour, and praise…. Thus should you train yourselves.”
Samyutta Nikaya (5c BCE-), The Samyutta Nikaya is part of the Pali Canon one of the earliest Buddhist texts.