Evil Death

Imaam Sha’raani (RA) says that it is the unanimous opinion of the Ulema that only a person who was persistent in committing sin in secret and had no care for the kabirah(major) sins, whose death will be evil (ie. In the state of kufr or without being able to recite the Kalimah). The death of a pious person will not be in a wretched state. Mufti Shafi (RA) has written, A wretched and an evil state of Maut (death) is not a spontaneous development arising out of the agony of death. It is the consequence of the previous commission of evil and disobedience which have become manifest at the time of death. (Kitabul Jana-iz)