Those who Prostrate Sincerely
The Messenger of Allah (sal Allahu alaihi wa sallam) said, “On the Day of Resurrection, Allah’s Shin will be shown, and there will be no one left who used to prostrate to Allah (sincerely) but Allah will give him permission to prostrate. And there will be no one left who used to prostrate to Allah (to show off) but Allah will make his spine into one solid piece, so that whenever he tries to prostrate, he will fall on his back.”
The Messenger (sal Allahu alaihi wa sallam) told us that at the end of that Day (the Day of Judgement), each nation will be told to follow the God they used to worship. So those who used to worship the sun will follow the sun, and those who used to worship the moon will follow the moon.
For those who used to worship idols, their Gods will be made to appear before them and will walk before them and they will follow them. Those who used to worship Pharaoh will follow him. Then these false Gods will all fall into the Fire, one after the other, and their worshippers will tumble into Hell after them.
Allah says (interpretation of the meaning) concerning Pharaoh: He will go ahead of his people on the Day of Resurrection, and will lead them into the Fire, and evil indeed is the place to which they are led. [Hud 11: 98]
After that there will be no one left except the believers and a few of the People of the Book. Among the believers will be the hypocrites who were with them in this world. Then their Lord will come to them and will say to them, “What are you waiting for?” They will say, “We are waiting for our Lord.” They will know Him by the Shin when it is laid bare to them. At that point they will fall down prostrating to Him, except for the hypocrites who will be unable to do so.
Allah says (interpretation of the meaning): (Remember) the Day when the Shin shall be laid bare (i.e. the Day of Resurrection) and they shall be called to prostrate (to Allah), but they (hypocrites) shall not be able to do so. [Al-Qalam 68: 42]
And Allah knows best!