tasya-his (of Maharaja Pariksit); janma-birth; maha-buddheh-of great intelligence; karmani-activities; ca-also; maha-atmanah-of the great devotee; nidhanam-demise; ca-also; yatha-as it was; eva-of course; asit-happened; sah-he; pretya-destination after death; gatavan-achieved; yatha-as it were.