Sayyiduna Ali (may Allah be pleased with him) narrates: The Prophet (peace and blessings be upon him) ascended the pulpit and, after praising and extolling Allah Almighty, he (peace and blessings be upon him) said: "There is a Book in which Allah Almighty has written the people of Paradise, their names and their lineages, all of them. Nothing will be added to it and nothing taken away from it until the Day of Resurrection. The one destined for Paradise has been sealed with the deeds of the people of Paradise, and the one destined for Hell has been sealed with the deeds of the people of Hell, whatever deeds he may do. (Sometimes it happens that) a person who is among the people of fortune walks the path of the people of wretchedness, until it is said: 'How much he resembles them; rather, he is one of them (the wretched)!' Then fortune overtakes him and rescues him. Likewise, a person belonging to the wretched walks the path of the fortunate, until it is said: 'How much he resembles them; rather, he is one of them (the fortunate)!' And then wretchedness reaches him. Whomever Allah Almighty has written as fortunate in the Preserved Tablet, Allah Almighty will not take him out of this world until He employs him in a deed that makes him fortunate before his death, even if it is only as long before his death as the interval between two milkings of a she-camel." Then the Prophet (peace and blessings be upon him) said: "Deeds are judged by their endings, deeds are judged by their endings." He (peace and blessings be upon him) said this three times. (Allamah al-Haythami says:) I say: there is a hadith from this Companion in the Sahih about the decree, other than this one.
Al-Tabarani recorded it in al-Mu'jam al-Awsat; its chain contains Hammad bin Waqid al-Saffar, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب القدر / 11924
Hadith Gradingمحدثین:إسنادہ ضعیف
Hadith Takhrij«أخرجه المعجم الأوسط للطبراني برقم: 5215، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 5793»