Sahih Bukhari Volume 9, Book 93, Hadith Number 507.
They will go to Abraham who will reply, ‘I am not fit for this undertaking,’ and mention to them the mistakes he made, and add, ‘But you’d better go to Moses, a slave whom Allah gave the Torah and to whom He spoke directly’ They will go to Moses who will reply, ‘I am not fit for this undertaking,’ and mention to them the mistakes he made, and add, ‘You’d better go to Jesus, Allah’s slave and His Apostle and His Word (Be: And it was) and a soul created by Him.’ They will go to Jesus who will say, ‘I am not fit for this undertaking, but you’d better go to Muhammad whose sins of the past and the future had been forgiven (by Allah).’ So they will come to me and I will ask the permission of my Lord, and I will be permitted (to present myself) before Him. When I see my Lord, I will fall down in (prostration) before Him and He will leave me (in prostration) as long as He wishes, and then it will be said to me, ‘O Muhammad! Raise your head and speak, for you will be listened to; and ask, for you will be granted (your request); and intercede, for your intercession will be accepted.’ I will then raise my head and praise my Lord with certain praises which He has taught me, and then I will intercede. Allah will allow me to intercede (for a certain kind of people) and will fix a limit whom I will admit into Paradise.
I will come back again, and when I see my Lord (again), I will fall down in prostration before Him, and He will leave me (in prostration) as long as He wishes, and then He will say, ‘O Muhammad! Raise your head and speak, for you will be listened to; and ask, for you will be granted (your request); and intercede, for your intercession will be accepted.’ I will then praise my Lord with certain praises which He has taught me, and then I will intercede. Allah will allow me to intercede (for a certain kind of people) and will fix a limit to whom I will admit into Paradise, I will return again, and when I see my Lord, I will fall down (in prostration) and He will leave me (in prostration) as long as He wishes, and then He will say, ‘O Muhammad! Raise your head and speak, for you will be listened to, and ask, for you will be granted (your request); and intercede, for your intercession will be accepted.’ I will then praise my Lord with certain praises which He has taught me, and then I will intercede. Allah will allow me to intercede (for a certain kind of people) and will fix a limit to whom I will admit into Paradise. I will come back and say, ‘O my Lord! None remains in Hell (Fire) but those whom Qur’an has imprisoned therein and for whom eternity in Hell (Fire) has become inevitable.'”
The Prophet added, “There will come out of Hell (Fire) everyone who says: ‘La ilaha illal-lah,’ and has in his heart good equal to the weight of a barley grain. Then there will come out of Hell (Fire) everyone who says: ‘ La ilaha illal-lah,’ and has in his heart good equal to the weight of a wheat grain. Then there will come out of Hell (Fire) everyone who says: ‘La ilaha illal-lah,’ and has in his heart good equal to the weight of an atom (or a smallest ant).”