This part is taken from Various Stories & Tales in “Spiritual Stories” as Told by Ramana Maharshi
A king was passing through a forest in all pomp and pageantry, with his army and retinue behind him. He came across a man with not even a cod-piece on, lying on the ground, with one leg cocked over the other. He was laughing away, apparently supremely happy, contented with himself and all the world. The king was struck with the man’s happy state and sent for him. But when the king’s men approached the nude ascetic and delivered the king’s message, he took absolutely no notice and continued in his ascetic bliss. On being told of this, the king himself went to the man and even then the man took no notice. Thereupon it struck the king that this must be no common man, and said, ‘Swami, you are evidently supremely happy. May we know what is the secret of such happiness and from which guru you learnt it?’ Thereupon the ascetic told the king, ‘I have had twentyfour gurus. Everything, this body, the earth, the birds, some instruments, some persons, all have taught me’. All the things in the world may be classed as either good or bad. The good taught him what he must seek. Similarly, the bad taught him what he must avoid. The ascetic was Dattatreya, the avadhuta.