Sahih Muslim 2611 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لَمَّا صَوَّرَ اللَّهُ آدَمَ فِي الْجَنَّةِ تَرَكَهُ مَا شَاءَ اللَّهُ أَنْ يَتْرُكَهُ فَجَعَلَ إِبْلِيسُ يُطِيفُ بِهِ يَنْظُرُ مَا هُوَ فَلَمَّا رَآهُ أَجْوَفَ عَرَفَ أَنَّهُ خُلِقَ خَلْقًا لاَ يَتَمَالَكُ "
Anas reported Allah's Messenger (ﷺ) as saying:
When Allah fashioned Adam in Paradise, He left him as He liked him to leave. Then Iblis roamed round him to see what actually that was and when he found him hollow from within, he recognised that he had been created with a disposition that he would not have control over himself.
Full reference and source
Sahih Muslim 2611 a In-book : Book 45, Hadith 146 USC-MSA web (English) : Book 32, Hadith 6319 (deprecated)
View source on Sunnah.com (opens in a new tab)