The following story of the appearance of Lord Nrisimhadeva is from Srimad-Bhagavatam, Canto 7, Chapters 2-10.
At the performance of the Rajasuya sacrifice by Maharaja Yudhisthira, the celestial sage Narada Muni appeared to give spiritual instructions to the Pandavas.