The Messenger of Allah ﷺ said, "When Allah shaped Adam in the Garden, He left him standing there as long as He willed. Iblis began circling around him, studying what he was, and when he saw that he was hollow within, he knew that he had been created as a creature with no self-restraint."
حدثنا أبو بكر بن نافع حدثنا بهز حدثنا حماد بهذا الإسناد نحوه