After returning from the farewell pilgrimage, the Messenger of Allah (s.a.w.a.) said: O people! Jibraeel, the Honest Spirit, came to me from Allah, the Magnificent, and said – O Mohammad, Allah says that he misses seeing you. So prepare a good will and finish what you have to do.
O people! My time has come (to an end) and I can see us leaving one another. So if your bodies have left me, do not allow your souls to do the same.
O people! Allah has never created an immortal prophet, and I am not immortal. Allah has said in this verse in the Qur’an, – We have not granted to any man before you eternal life. What! If you die, will they live for ever? Every soul shall taste of death. (Surah Ambiya 21:34-35). Understand that my Lord has ordered me to leave a will for you.
Understand that my Lord has ordered me to show you to the Ark of Rescue and the Door of Sustenance. Those of you who want to survive after me and be safe from the destroying seductions should hold firmly to the Wilayat of Ali bin Abi Talib (a.s.). He is the most truthful and the best separator of right from wrong.
He is the Imam of every Muslim after me.
Those who love him and follow him will be next to me by the Pool of Kausar on the Day of Judgement. I will see those who disobey him on the Day of Judgement, but they will not see me. They will be pulled towards others who will take them deep into Hell.
Then the Prophet (s.a.w.a.) said – O people! I have given you the best advice but you do not like the advisors. I say this and I seek forgiveness for myself and for you.
Then he (s.a.w.a.) held Ali’s head and kissed his forehead.
Then the Prophet (s.a.w.a.) said to Ali – O Ali, your virtues cannot be counted. I swear to Allah, who created the seeds and created people, if all creatures would concede to loving you and understanding your true status, Allah would not have created Hell.
Ghaayah al-Maraam p 45 Ehqaq al-Haqq v 4 p 331