Allah told the angels He would place a successor (khalīfah) on earth (2:30). He created Adam from clay, breathed life into him and taught him the names of all things, knowledge the angels did not have (2:31–33). Then Allah commanded the angels to prostrate to Adam, and they all did except Iblis.
2. The pride of Iblis
Iblis refused out of pride and said: “I am better than him. You created me from fire and created him from clay” (7:12). He was expelled, and he vowed to mislead Adam’s children until the Day of Judgement (7:16–17).
3. The tree and the repentance
Adam and his wife lived in the Garden and could eat freely, except from one tree. Shaytan whispered to them and swore he was a sincere adviser, and they ate from it (7:19–22). They did not blame Shaytan or argue; they turned to Allah at once: “Our Lord, we have wronged ourselves, and if You do not forgive us and have mercy on us, we will surely be among the losers” (7:23). Allah accepted their repentance (2:37), and sent them down to the earth, the place He had created them for, with His guidance to follow (2:38).
And [mention, O Muḥammad], when your Lord said to the angels, "Indeed, I will make upon the earth a successive authority." They said, "Will You place upon it one who causes corruption therein and sheds blood, while we exalt You with praise and declare Your perfection?" He [Allāh] said, "Indeed, I know that which you do not know."