Riyad as-Saliheen 945
`Ali (May Allah be pleased with him) reported:
We were accompanying a funeral procession in Baqi` Al-Gharqad (graveyard in Al-Madinah) when the Messenger of Allah ﷺ proceeded towards us and sat down. We sat around him. He had a small stick in his hand. He was bending down his head and scraping the ground with the stick. He said, "There is none among you but has a place assigned for him either in the Jannah or in the Hell." The Companions said: "O Messenger of Allah, should we not depend upon what has been written for us (and give up doing good deeds)?'' The Messenger of Allah ﷺ said, "Carry on doing good deeds. Every one will find it easy to do such deeds (as will lead him to his destined place) for which he has been created."
[Al-Bukhari and Muslim].
عن علي رضي الله عنه قال: كنا في جنازة في بقيع الغرقد فأتانا رسول الله ﷺ فقعد، وقعدنا حوله ومعه مخصرة فنكس وجعل ينكت بمخصرته، ثم قال: ما منكم من أحد إلا وقد كتب مقعده من النار ومقعده من الجنة” فقالوا: يا رسول الله أفلا نتكل علي كتابنا؟ فقال: "اعملوا فكل ميسر لما خلق له" وذكر تمام الحديث. ((متفق عليه))