We often repeat the saying: "O Allah, grant us a good ending."
For the deceased is resurrected upon the state in which they died (as the tradition claims).
If we hear that someone died while praying, in a mosque, or while reading the Quran, we say: "How lucky they are! Allah granted them a good ending," and we immediately guarantee them Paradise!
However, if a person dies while listening to music (considering it "forbidden" in tradition) or while watching a movie or singing, we say: "O Allah, grant us a good ending," assuming their ending was bad because a person is resurrected as they died, as mentioned before.
"Good Ending" and "Bad Ending" are merely traditional concepts for which Allah has sent no authority. True good ending is:
- To die with a heart clear of polytheism (Shirk).
- To die without having oppressed anyone.
- To die without having given false testimony.
- To die without having consumed the orphan's wealth.
- To die without having taken your sisters' inheritance.
- To die without having violated the rights of others.
This is a Good Ending, and its opposite is a Bad Ending.
As for dying while prostrating or dying while watching TV and listening to music—which are considered forbidden in heritage—this has no standing with Allah .
If you die while prostrating, it will not increase your good deeds, and if you die while listening to music, it will not decrease them.
Allah Almighty informs us that He will not waste an atom's weight of any deed, whether good or bad.
Allah says: "So whoever does an atom's weight of good will see it, And whoever does an atom's weight of evil will see it." Az-Zalzalah [7-8].
He also says: "And that there is not for man except that [good] for which he strives." An-Najm [39].
The Book of Allah does not tell us that whoever dies prostrating is granted Paradise.
The Book of Allah does not tell us that whoever dies while listening to music should take his place in Hell.
It is the heritage books that tell us this.
Heritage books have portrayed Allah as a deity who is ready to wipe out all the good you have done just because you happened to die while watching a movie, for example.
Yet He is the one who says: "Never will I allow to be lost the work of [any] worker among you, whether male or female." Al-Imran [195].
In the traditional concept, if a person spent all their money on the poor and needy and cared for orphans, but then died while listening to songs, they would be considered to have had a bad ending.
Note: Listening to songs is used metaphorically here because traditionalists always make it a measure of a bad ending; the same applies to anything deemed "forbidden" or "shunned" in religious heritage.
Summary:
Regardless of the state in which a person dies, they will be judged by what they did throughout their life.
A true "Good Ending" is not linked to the physical circumstances of the moment of death, but rather to the righteous deeds performed during one's lifetime.
The Holy Quran emphasizes the principle of individual responsibility and that every human will be judged only for their deeds.
We must distinguish between correct Quranic concepts and traditional concepts that may not align with the spirit of Divine Justice.