Ali bin Abu Talib reported,

We were at a funeral in Baqi al-Gharqad when the Messenger of Allah ﷺ came to us. He sat down and we sat around him. He had a small stick with him and he began scratching the ground with it. Then he raised his head and said, "There is not one soul among you that has been born but its place in Paradise or in the Fire has already been written, and it has already been written as wretched or as blessed."The people said, "Messenger of Allah, then should we not simply rely on what has been written for us and abandon action? Whoever is among the people of blessedness will end up in blessedness, and whoever is among the people of wretchedness will end up in wretchedness."The Messenger of Allah ﷺ replied, "No, keep working, for everyone is made ready for what he was created for. As for the one who is among the people of wretchedness, he is made ready for the deeds of wretchedness, and as for the one who is among the people of blessedness, he is made ready for the deeds of blessedness."Then he recited, "As for the one who gives and is mindful of Allah" up to His words, "We will ease him toward hardship" [Layl 92:5–10].

Ahmad 1067

Sahih

حدثنا عبد الرحمن حدثنا زائدة عن منصور عن سعد بن عبيدة عن أبي عبد الرحمن

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

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

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