Ali bin Abu Talib reported,

We were sitting with the Prophet ﷺ, and he had a stick in his hand with which he was scratching the ground. Then he raised his head and said, "There is none among you whose place in Paradise or in the Hellfire has not already been written."Someone asked, "Messenger of Allah, should we then not rely upon this and abandon striving?"He replied, "No. Keep working, for everyone is made easy toward that for which he was created."Then he recited, "As for the one who gives and is mindful of Allah and believes in the best reward, We will ease him toward ease. But as for the one who is stingy and considers himself self-sufficient and denies the best reward, We will ease him toward hardship." [Layl 92:5–10]

Ibn Majah 78

Sahih

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

عن علي بن أبي طالب قال

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

ابن ماجه 78صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Sunnah
Chapter
Decree
Numbering
Darussalam 78
Ibn Majah 78