Narrated Anas: The Prophet (ﷺ) said,
“The believers will be kept (waiting) on the Day of Resurrection so long that they will become worried and say, “Let us ask somebody to intercede far us with our Lord so that He may relieve us from our place.
Then they will go to Adam and say, ‘You are Adam, the father of the people. Allah created you with His Own Hand and made you reside in His Paradise and ordered His angels to prostrate before you, and taught you the names of all things will you intercede for us with your Lord so that He may relieve us from this place of ours? Adam will say, ‘I am not fit for this undertaking.’ He will mention his mistakes he had committed, i.e., his eating off the tree though he had been forbidden to do so. He will add, ‘Go to Noah, the first prophet sent by Allah to the people of the Earth.’ The people will go to Noah who will say, ‘I am not fit for this undertaking’ He will mention his mistake which he had done, i.e., his asking his Lord without knowledge.’ He will say (to them), ‘Go to Ibraham, Khalil Ar-Rahman.’ They will go to Ibraham who will say, ‘I am not fit for this undertaking. He would mention three words by which he told a lie, and say (to them). ‘Go to Moses, a slave whom Allah gave the Torah and spoke to, directly and brought near Him, for conversation.’
They will go to Musa who will say, ‘I am not fit for this undertaking. He will mention his mistake he made, i.e., killing a person, and will say (to them), ‘Go to Jesus, Allah’s slave and His Apostle, and a soul created by Him and His Word.’ (Be: And it was.) They will go to ‘Isa who will say, ‘I am not fit for this undertaking but you’d better go to Muhammad the slave whose past and future sins have been forgiven by Allah.’ So they will come to me, and I will ask my Lord’s permission to enter His House and then I will be permitted. When I see Him I will fall down in prostration before Him, and He will leave me (in prostration) as long as He will, and then He will say, ‘O Muhammad, lift up your head and speak, for you will be listened to, and intercede, for your intercession will be accepted, and ask (for anything) for it will be granted:’ Then I will raise my head and glorify my Lord with certain praises which He has taught me. Allah will put a limit for me (to intercede for a certain type of people) I will take them out and make them enter Paradise.” (Qatada said: I heard Anas saying that), the Prophet (ﷺ) said, “I will go out and take them out of Hell (Fire) and let them enter Paradise, and then I will return and ask my Lord for permission to enter His House and I will be permitted.