The activities of the Lord are always wonderful. His personal servants Jaya and Vijaya were confidential friends, yet they were cursed, and they accepted bodies of demons. Again, in the family of one such demon, Prahlāda Mahārāja was caused to take birth to exhibit the behavior of an exalted devotee, and then the Lord accepted the body of Nṛsiṁhadeva to kill that same demon, who by the Lord's own will had taken birth in a demoniac family.
Śrīmad-Bhāgavatam 7.8.40, Purport(Excerpt)
