Sahih al-Bukhari 4948
Uthman bin Abi Shaibah narrated to us that Jarir (bin Abdul Hamid) told us. He narrated from Mansur, Mansur from Sa'd bin Ubaidah, Sa'd from Abu Abdur Rahman Sulami, Abu Abdur Rahman from Hazrat Ali (ra). He said: We were at a funeral in Baqi'-ul-Gharqad when the Messenger of Allah (saw) came to us and sat down, and we sat around him. He had a stick with him; he bowed his head and began to scratch the ground with his stick. Then he said: “There is none among you, and there is no soul that has been created, but its abode has certainly been written in Paradise or in the Fire, and it has certainly also been written about it whether it is wretched or blessed.” A man said: O Messenger of Allah (saw)! Should we not rely on this writing of ours and give up action? Whoever of us is among the blessed will certainly join the blessed, and whoever of us is among the wretched will certainly go towards the deeds of the wretched. He (saw) said: “As for those who are blessed, they will be enabled to do the deeds that belong to the blessed; and as for those who are wretched, they will be enabled to do the deeds that belong to the wretched.” Then he recited these verses, that is: “Then as for him who gives and is righteous, And testifies to the truth of what is right” (Qur’an 92:6-7).
AI-translated by Islam-Today
Book 6: "Whoever is an enemy to Jibril (Gabriel)..." (V.2:97)