Ali bin Abu Talib reported,

The Prophet ﷺ was at a funeral when he picked up a stick and began poking at the ground with it. He said, "There is not one of you whose place in the Fire or in the Garden has not already been written."They asked, "Should we not then rely on this and stop striving?"He replied, "Keep working, for everyone is made easy for what he was created. 'As for the one who gives and is mindful of Allah'" [Layl 92:5], and he recited the rest of the verse.

Bukhari 7552

Sahih

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

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

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

البخاري 7552صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
Allah's saying, "And We have certainly made the Quran easy for remembrance"
Numbering
Darussalam 7552
Bukhari 7552