Ali bin Abu Talib reported,

We were sitting with the Prophet ﷺ when he said, "There is not one of you whose place in Paradise and place in the Fire has not already been written."We said, "Messenger of Allah, should we not then rely on that?"He replied, "No. Keep working, for everyone is made able for what he was created for." Then he recited, "As for the one who gives and is mindful of Allah and affirms the truth of what is best, We shall ease his way to what is easy," up to His words, "We shall ease his way to hardship" [Layl 92:5–10].

Bukhari 4947

Sahih

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

عن علي عليه السلام قال

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

البخاري 4947صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "But as for he who withheld and considered himself free of need"
Numbering
Darussalam 4947
Bukhari 4947