Let none of you die unless he has good expectations from Allah
Jabir bin 'Abdullah, May Allah be pleased with him, reported:
"I heard the Prophet, may the peace and blessings of Allah be upon him, saying three days before his death: "Let none of you die unless he has good expectations from Allah".
This is one of the last commandments that the Messenger of Allah, may the peace and blessings of Allah be upon him, enjoined upon his companions and those who follow them with righteousness until the Day of Judgment, so the Muslim must consider them as a guiding light to guide him in his path to Allah. One must not despair from seeking mercy and forgiveness from his Lord regardless of his continuous sins.
It is a will of a man who will leave this world as we understand from the Hadeeth, as if it were a will from the one who saw death and felt the mercy of Lord approaching him and promising with the best abode.
The meaning of this commandment in general is to believe in Allah throughout all your life until you meet him - the Almighty. whoever dies on a state will be resurrected on the same state on the last day. Be keen on having good expectations in His mercy as you are keen on the life itself, so that death will not reach you while you are unaware of this good belief. Recall it in your heart whenever the ghost of despair approaches you even from afar.
Please be mindful of the facts that the mercy of Allah has encompassed everything, that his forgiveness precedes his punishment, and that granting repentance to his slaves is closer to them than the cord of the vein.