Hadith 5702
Mishkat al-Masabih
Events of the Day of Resurrection and the Beginning of Creation · The Beginning of Creation, and Mention of the Prophets - Section 1
Arabic
وَعَنْ أَنَسٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «لَمَّا صَوَّرَ اللَّهُ آدَمَ فِي الْجَنَّةِ تَرَكَهُ مَا شَاءَ أَنْ يَتْرُكَهُ فَجَعَلَ إِبْلِيسُ يُطِيفُ بِهِ يَنْظُرُ مَا هُوَ فَلَمَّا رَآهُ أَجْوَفَ عَرَفَ أَنَّهُ خُلِقَ خَلْقًا لَا يتمالَكُ» . رَوَاهُ مُسلم
English translation
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.