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.