Yudhishthira asked Janardana for the name of the Ekadashi of the dark half of Bhadrapada, and Krishna answered that it is called Aja and destroys all sins. Worshipping Vishnu and keeping the vow on that day wipes out sin, he said, and so does merely hearing about the vow. There is nothing greater, he told the king, for either world.
He then told of Harishchandra, an emperor true to his word and lord of the whole earth, who lost his kingdom through the fruit of some act. The king sold his wife and his son and himself, became the slave of a chandala, and had to take the clothes off corpses. Yet he never swerved from truth, and so he passed many years, growing worn with grief and unable to see a way out.
A sage came to him, one of those brahmanas whom, the chapter says, Brahma created to help others. The king bowed with joined palms and described his suffering. The sage, Gautama, was amazed, and instructed him in a vow: the Ekadashi of the dark half of Bhadrapada, called Aja and full of merit, would fall on the seventh day from then. He told him to fast and stay awake all night.
Having said that Gautama vanished. Harishchandra kept the vow, and his sin died in an instant. The misery that would have lasted many years came to an end, he was united with his wife and lived beside his son, drums sounded and flowers fell from the sky, and he regained a kingdom free from trouble. In the end he reached heaven with the people of his city and his retinue.