Srimad Bhagavatam Canto 07, Chapter 08, Text 27

SB 7.8.27

tam manyamano nija-virya-sankitam
 yad dhasta-mukto nrharim mahasurah
punas tam asajjata khadga-carmani
 pragrhya vegena gata-sramo mrdhe
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
When Hiranyakasipu was freed from the hands of Nrsimhadeva, he falsely thought that the Lord was afraid of his prowess. Therefore, after taking a little rest from the fight, he took up his sword and shield and again attacked the Lord with great force.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
When a sinful man enjoys material facilities, foolish people sometimes think, “How is it that this sinful man is enjoying whereas a pious man is suffering?” By the will of the Supreme, a sinful man is sometimes given the chance to enjoy the material world as if he were not under the clutches of material nature, just so that he may be fooled. A sinful man who acts against the laws of nature must be punished, but sometimes he is given a chance to play, exactly like Hiranyakasipu when he was released from the hands of Nrsimhadeva. Hiranyakasipu was destined to be ultimately killed by Nrsimhadeva, but just to see the fun, the Lord gave him a chance to slip from His hands.
Srimad Bhagavatam Canto 07, Chapter 08, Text 26
Srimad Bhagavatam Canto 07, Chapter 08, Text 28