Reference: Fataawa Islaamiyyah – Volume 1, Page 17
Question: How shall the people come out of their graves on the Day of Resurrection?
And who will be the first to be dressed?
Response: Allaah (Subhaanahu wa Ta’aala) will resurrect man on the Day of Resurrection by reconstructing him from his tail bone. People will grow as perfect creatures just as plants grow from seeds, and palm trees from date stones. They will emerge from their graves barefooted, naked and uncircumcised. They will rush forth like spread locusts, or dispersed butterflies, and will not miss the way to the Assembly Land [where all of mankind shall gather]. In fact, they will know their way to it better than a wild pigeon knows its way to its nest, as they are racing to a target.
The first upon whom the earth will crack open is our Prophet Muhammad ﷺ. He will be the first to regain conciousness. As for the first to be dressed after Resurrection, then it will be Khaleelur-Rahmaan (Prophet Ibraaheem (Abraham) (‘alayhis-salaam)). Horror will overtake mankind to the point even Prophets will say on that Day: “Myself, myself”. He who reads the aayaat that deal with Resurrection in the Soorahs al-Qamar, al-Ma’aarij and al-Qaari’ah, and the like will have more information about that great event.
It is authentically reported in both al-Bukhaaree and Muslim, that the Prophet ﷺ said:
«You shall be summoned barefooted, naked and uncircumcised».
Then he read and said:
{As We began the first creation, so shall We repeat it, a promise binding upon Us. We shall certainly fulfill it}, [Soorah al-Anbiyaa., Aayah 105]
«The first to be dressed on the Day of Resurrection is [Prophet] Ibraaheem (Abraham) (‘alayhis-salaam). While a group of my Ummah will be snatched away to the left side, and I would call out: “My followers!” It will be said: “They apostasised after you left them”. And then I will say as the good worshipper (Prophet ‘Eesaa (Jesus) (‘alayhis-salaam)) said.», [Saheeh al-Bukhaaree, no.3349 and Saheeh Muslim, no.2860]
{And I was a witness over them as long as I remained with them, but when You collected me, You were the Watcher over them, and You are the witness over everything. If You punish them, they are Your worshippers; and if You forgive them, You are the Mighty, the Wise}, [Soorah al-Maa.idah, Aayaat 117-118]
It is authentically reported that the Prophet ﷺ said:
«Mankind will be shocked to swoon on the Day of Resurrection, and I will be the first upon whom the ground will crack open», [Saheeh al-Bukhaaree, no.2412]
It is also authentically reported that the Prophet ﷺ [also] said:
«I will be the first to regain consciousness», [Saheeh al-Bukhaaree, no.4638]
You may get further details about the above ahaadeeth from the book “al-‘Aqeedah at-Tahaawiyyah” of Imaam at-Tahaawee [with the explanation of Imaam Abil-‘Izz al-Hanafee] who talks about the conditions of the people on the Day or Resurrection.
And with Allaah lies all success and may Allaah send prayers and salutations upon our Prophet ﷺ and his family and his companions.