Mishkat al-Masabih
Mishkat al-Masabih 85
عَن عَليّ رَضِي الله عَنهُ قَالَ كُنَّا فِي جَنَازَة فِي بَقِيع الْغَرْقَد فَأَتَانَا النَّبِي صلى الله عَلَيْهِ وَسلم فَقعدَ وقعدنا حوله وَمَعَهُ مخصرة فَنَكس فَجعل ينكت بمخصرته ثمَّ قَالَ مَا مِنْكُم من أحد مَا من نفس منفوسة إِلَّا كتب مَكَانهَا من الْجنَّة وَالنَّار وَإِلَّا قد كتب شقية أَو سعيدة فَقَالَ رجل يَا رَسُولَ اللَّهِ أَفَلَا نَتَّكِلُ عَلَى كِتَابِنَا وَنَدع الْعَمَل فَمن كَانَ منا من أهل السَّعَادَة فسيصير إِلَى عمل أهل السَّعَادَة وَأما من كَانَ منا من أهل الشقاوة فسيصير إِلَى عمل أهل الشقاوة قَالَ أما أهل السَّعَادَة فييسرون لعمل السَّعَادَة وَأما أهل الشقاوة فييسرون لِعَمَلِ الشَّقَاوَةِ ثُمَّ قَرَأَ (فَأَمَّا مَنْ أَعْطَى وَاتَّقَى وَصدق بِالْحُسْنَى) الْآيَة
ʿAli reported: We were at a funeral in Baqiʿ al-Gharqad when the Prophet came to us and sat down, and we sat around him. He had a short staff; he lowered his head and began making marks on the ground with it. Then he said, “There is no one among you, no living soul, whose place in Paradise or the Fire has not been written, and whether they will be wretched or happy has not been written.” A man asked, “Messenger of God, should we not rely on what is written for us and give up action? Whoever among us is among the people of happiness will come to the deeds of the people of happiness; and whoever is among the people of wretchedness will come to the deeds of the people of wretchedness.” He replied, “As for the people of happiness, they are made ready for the deeds of happiness; and as for the people of wretchedness, they are made ready for the deeds of wretchedness.”
Then he recited: “As for the one who gives, is mindful, and affirms the best”—the verse.