(45) باب كَيْفَ الْحَشْرُ
Narrated Ibn `Abbas:
The Prophet (ﷺ) stood up among us and addressed (saying) "You will be gathered, barefooted, naked, and uncircumcised (as Allah says): 'As We began the first creation, We shall repeat it..' (21.104) And the first human being to be dressed on the Day of Resurrection will be (the Prophet) Abraham Al-Khalil. Then will be brought some men of my followers who will be taken towards the left (i.e., to the Fire), and I will say: 'O Lord! My companions whereupon Allah will say: You do not know what they did after you left them. I will then say as the pious slave, Jesus said, And I was witness over them while I dwelt amongst them..........(up to) ...the All-Wise.' (5.117-118). The narrator added: Then it will be said that those people (relegated from Islam, that is) kept on turning on their heels (deserted Islam).
Reference: Sahih al-Bukhari 6526
In-book reference: Book 81, Hadith 115
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 76, Hadith 533