Hadith 5702

Anas reported God's messenger as saying, "When God fashioned Adam in paradise, He left him as long as God wished to leave him; then Iblis began to visit him and consider what kind of being he was, and when he saw that he had a hollow space within he recognised that he had been created as a being not possessed of self-control." Muslim transmitted it.

وَعَنْ أَنَسٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «لَمَّا صَوَّرَ اللَّهُ آدَمَ فِي الْجَنَّةِ تَرَكَهُ مَا شَاءَ أَنْ يَتْرُكَهُ فَجَعَلَ إِبْلِيسُ يُطِيفُ بِهِ يَنْظُرُ مَا هُوَ فَلَمَّا رَآهُ أَجْوَفَ عَرَفَ أَنَّهُ خُلِقَ خَلْقًا لَا يتمالَكُ» . رَوَاهُ مُسلم

Reference: 5657020
In-book reference: Book 28, Hadith 5702