After Mahabharat they return to their respective kingdoms, rule for few decades (around 35 years) and then leave this world for ever having served their purpose of life. The Musala Parva and the Mahaprasthanika Prava of Mahabharat has the detailed description about it. The major events in breif are:
After Mahabharat war is over, Gandahari struck with grief on the death of his sons curses Shri Krishna that the Yadavas will also die a same death. Shri Krishna accepts the curse.
After around 35 years the sons of Shri Krishna playfully misbehaved some rishis and got cursed in return. Samba dressed as a pregnant woman, along with other Yadavas, went on asking rishis to predict the gender of her future child. One rishi gets angry and curses he will give birth to an iron piece which will destroy their entire race.
- Dwarika witnesses bad omens and sinful activites increase. Shri Krishna instructs others to go on a pilgrimage to Prabhasa.
- At Prabhasa, the Yadavas drink wine and get intoxicated. A fight ensues among them and every Yadava kills one another. Only Shri Krishna, Daruka, Vabhru and Balarama survive. But later on Vabhru and Balarama leave this world too.
- Shri Krishna sends Daruka to inform Arjuna and bring help. Meanwhile, a hunter mistakenly shoots an arrow that strikes at Shri Krishna's foot and leaves Him wounded. Shri Krishna consoles the hunter and then merges in the image of Vishnu and leaves this mortal world for His own abode.
- Arjuna reaches there. Tries to save widowed queens of Shri Krishna but loses in fight against the barbarians. Vedavyasa instructs Arjuna that the Pandavas' purpose of life has been over.
- Yudhisthira coronates Parikshit and the 5 Pandavas along with Draupadi set out for their journey towards heaven by climbing the mountain Himalaya. A dog follows them on their way up to the mountain.
- Along their way while climbing the mountain one after another in the order of Draupadi, Sahadeva, Nakula, Arjuna and Bhima fall down and die.
- Yudhisthira alone survives and Indra comes to welcome to heaven him with his chariot. Indra asks Yudhisthira to leave the dog behind and enter into the chariot and go to heaven.
- Yudhisthira declines the offer to enter into heaven unless the dog also goes with him as the dog has befriended him. The dog then becomes Yama and tells Yudhisthira that he has passed the test. After that Yudhisthira enters into heaven.
Thus, after many such series of events Shri Krishna and the Pandavas leave this mortal world. The city of Dwaraka submerges into the ocean and eventually the present age of Kali begins.
Reasons for which the Pandavas fell down from the mountain
As per Ankit's suggestion (with reference to the point 8 above) below are the reasons, as given by Yudhisthira to Bhima, for which the Pandava brothers and Draupadi except Yudhisthira fell down from the mountain:
O best of men, though we were all equal unto her she had great partiality for Dhananjaya. She obtains the fruit of that conduct today. [MB - 17.2.6]
He never thought anybody his equal in wisdom. It is for that fault that this prince has fallen down. [MB - 17.2.10]
He was of righteous soul and the foremost of all persons endued with intelligence. He, however, thought that there was nobody that equalled him in beauty of person. Indeed, he regarded himself as superior to all in that respect. It is for this that Nakula has fallen down. [MB - 17.2.16]
Arjuna had said that he would consume all our foes in a single day. Proud of his heroism, he did not, however, accomplish what he had said. Hence has he fallen down. This Phalguna disregarded all wielders of bows. One desirous of prosperity should never indulge in such sentiments. [MB - 17.2.21,22]
You were a great eater, and you used to boast of your strength. You never attended, O Bhima, to the wants of others while eating. It is for that, O Bhima, that you have fallen down. [MB - 17.2.25]