The ending: after the war
Ashvatthama’s night raid, Gandhari’s curse, Yudhishthira’s coronation and the Pandavas’ last journey
That night the dying Duryodhana made Ashvatthama his last commander. Leaving Kripa and Kritavarma at the gate, Ashvatthama entered the sleeping Pandava camp and killed many, among them Dhrishtadyumna, Shikhandi and all five sons of Draupadi. The Pandavas and Krishna survived because they were outside the camp that night. Hearing the news, Duryodhana died. The next day Ashvatthama loosed the Brahmashira weapon; unable to withdraw it, he turned it toward the womb of Uttara, Abhimanyu’s wife. Krishna gave life to the unborn child, Parikshit; the gem was taken from Ashvatthama’s forehead and he was cursed to wander for thousands of years.
Of the eighteen akshauhinis, only a few survived: on the Pandava side the five Pandavas, Krishna, Satyaki and Yuyutsu; on the Kaurava side Ashvatthama, Kripa and Kritavarma. Gandhari, who had lost a hundred sons, cursed Krishna: “You could have stopped this war had you wished; in thirty-six years your own Yadava clan will perish the same way.” Krishna accepted the curse calmly. Yudhishthira was crowned, but his heart was full of grief. From his bed of arrows Bhishma gave him long teachings on the duties of a king and of life, and when Uttarayana came he gave up his life as he had chosen.
After the war Dhritarashtra wished to embrace the Pandavas. Before Bhima stepped forward, Krishna put an iron statue of Bhima in front of him, and the grief-stricken, enraged Dhritarashtra crushed it to pieces in his embrace. Later, repenting his anger, he wept. As the dead were offered water on the bank of the Ganga, Kunti said before everyone for the first time, “Offer water for Karna too; he was your eldest brother.” Hearing this, Yudhishthira sank into deep grief.
From his bed of arrows Bhishma gave Yudhishthira long teachings on the duties of a king, on conduct in times of crisis and on liberation; the Vishnu Sahasranama comes from this part of the story. Later Yudhishthira performed the Ashvamedha sacrifice. Some years afterwards Dhritarashtra, Gandhari and Kunti went to the forest to live as ascetics, and there their lives ended in a forest fire. Peace returned to Hastinapur, but it came after many tears.
After thirty-six years of rule, by Gandhari’s curse the Yadava clan came to its end and Krishna too left the earth. The Pandavas then handed the kingdom to Abhimanyu’s son Parikshit and, with Draupadi, set out on their last journey toward the Himalaya. One by one they fell along the way, until only Yudhishthira and a dog that had followed him remained. The dog was Dharma himself; Yudhishthira refused to enter heaven without him, and after this test the way to heaven opened for him in his own body. Here the story of the Mahabharata ends.
यत्र योगेश्वरः कृष्णो यत्र पार्थो धनुर्धरः।
तत्र श्रीर्विजयो भूतिर्ध्रुवा नीतिर्मतिर्मम॥(Sanjaya says) Wherever there is Krishna, the lord of yoga, and wherever there is Arjuna, the archer, there are fortune, victory, prosperity and steady justice. This is my conviction.