A good end means when a person was guided before his death to keep away from that which angers the Lord and to repent from sin, and to focus on doing acts of worship and good deeds, and then he died in this good state. One of the indications of this is the saheeh hadeeth narrated from Anas ibn Maalik (may Allaah be pleased with him) who said: The Messenger of Allaah (peace and blessings of Allaah be upon him) said: “When Allaah wills good for His slave, He uses him.” They said, “How does He use him?” He said, “He guides him to do good deeds before he dies.” Narrated by Imam Ahmad, 11625; al-Tirmidhi, 2142; classed as saheeh by al-Albaani in al-Silsilah al-Saheehah, 1334.