Ali bin Abu Talib reported,

We were sitting with the Prophet ﷺ at a funeral, at Baqi al-Gharqad, I believe he said. He began poking at the ground, then raised his head and said, "There is not one of you whose place in Paradise and whose place in the Fire has not already been written."We said, "Messenger of Allah, then should we not simply rely on that?"He replied, "No. Keep working, for each person is being made ready for what he was created for."Then he recited, "As for the one who gives and is mindful of Allah" up to His words, "We will ease his way to hardship" [Layl 92:5–10].

Ahmad 1110

Sahih

وكيع حدثنا الأعمش عن سعد بن عبيدة عن أبي عبد الرحمن السلمي

عن علي رضي الله عنه قال

كنا جلوسا مع النبي ﷺ في جنازة أراه قال ببقيع الغرقد قال فنكت في الأرض ثم رفع رأسه فقال ما منكم من أحد إلا وقد كتب مقعده من الجنة ومقعده من النار قال قلنا يا رسول الله أفلا نتكل قال لا اعملوا فكل ميسر ثم قرأ {فأما من أعطى واتقى} إلى قوله {فسنيسره للعسرى}

أحمد 1110صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Ali bin Abu Talib
Numbering
Darussalam 1110
Ahmad 1110