How One is Resurrected
Jabir (radi Allahu anhu) said that The Prophet (sal Allahu alaihi wa sallam) said, “Every one will be raised in the condition in which he dies.”
This Hadith signifies that if a person dies performing good deeds, he will have a good end; and the one who dies in misdeeds, he will come to a bad end.
It is, therefore, necessary that one should always avoid disobedience of Divine injunctions, especially in old age and illness because one may fall in the clutches of death at any time.
And Allah Knows Best!