When God announced to the angels that He was placing a Khalifa on Earth, the assumption was that this was Adam. Yet, Adam was not placed on Earth but originally dwelled in Paradise.
2:30 Recall that your Lord said to the angels, “I am placing a representative (a temporary god) on Earth.” They said, “Will You place therein one who will spread evil therein and shed blood, while we sing Your praises, glorify You, and uphold Your absolute authority?” He said, “I know what you do not know.”
وَإِذْ قَالَ رَبُّكَ لِلْمَلَـٰٓئِكَةِ إِنِّى جَاعِلٌ فِى ٱلْأَرْضِ خَلِيفَةً قَالُوٓا۟ أَتَجْعَلُ فِيهَا مَن يُفْسِدُ فِيهَا وَيَسْفِكُ ٱلدِّمَآءَ وَنَحْنُ نُسَبِّحُ بِحَمْدِكَ وَنُقَدِّسُ لَكَ قَالَ إِنِّىٓ أَعْلَمُ مَا لَا تَعْلَمُونَ
2:35 We said, “O Adam, live with your wife in Paradise, and eat therefrom generously, as you please, but do not approach this tree, lest you sin.”
وَقُلْنَا يَـٰٓـَٔادَمُ ٱسْكُنْ أَنتَ وَزَوْجُكَ ٱلْجَنَّةَ وَكُلَا مِنْهَا رَغَدًا حَيْثُ شِئْتُمَا وَلَا تَقْرَبَا هَـٰذِهِ ٱلشَّجَرَةَ فَتَكُونَا مِنَ ٱلظَّـٰلِمِينَ
It was not until Satan duped Adam that he was demoted and ordered to go down to Earth.
2:36 But the devil duped them, and caused their eviction therefrom. We said, “Go down as enemies of one another. On Earth shall be your habitation and provision for awhile.”