Shankaracharya - the philosopher who established Advaita Vedanta, the teaching of ultimate non-dualism - was walking through Varanasi one day with his disciples when they encountered a chandala, a man of the "untouchable" caste, walking toward them on the road.
Shankara's disciples called out for the man to step aside. The chandala did not move. Instead he spoke:
"You who teach that all is Brahman - that the Self in you and the Self in me are the same - you are asking me, that same Brahman, to step aside? Who should step aside? Should the Brahman in my body move away from the Brahman in yours? Or are you teaching only theory?"
Shankara was struck to the core. He recognized in that moment that the chandala was not a chandala at all - he was Shiva himself, come to test his disciple.
Shankara prostrated on the ground before the man and composed five verses of praise - the Manisha Panchakam - declaring: "He who knows the Self that is both in a Brahmin and in a chandala - he is my true guru. Whether he is a Brahmin or a chandala, it makes no difference."
This story is at the heart of Shankara's legacy. He composed beautiful devotional hymns to Shiva, Vishnu, and Devi - not despite his non-dualistic philosophy, but as an expression of it. The devotional hymns and the philosophy are not contradictory: in Advaita, worship is the mind's way of approaching the truth it cannot grasp through argument alone.