This is a verse from the Bhagavad-Gita that Gandhi quotes in his Autobiography (I highly highly reccomend it. It is comforting as well as inspirational to see that someone who made such a huge impact on the World was still just a man, he made mistakes too) that I love. I also wonder, whoever wrote the Gita must have also experienced these things for themselves. They must have gone through the experience of being completely consumed by their desires and minds. If not, how could they have written such a beautiful work with so much wisdom? Even the Buddha experienced extreme pain and made mistakes (or conscious choices) in his life, such as renounce the material world which included his wife and son to pursue enlightenment.
“If one ponders on objects of the sense, there springs attraction; from attraction grows desire, desire flames to fierce passion, passion breeds recklessness; then the memory- all betrayed- lets noble purpose go, and saps the mind, till purpose, mind, and man are all undone.” -Bhagavad-Gita