Ali bin Abu Talib reported,

We were with the Prophet ﷺ at a funeral when he began poking the ground with a stick. He said, "There is not one of you whose place in Paradise or in the Hellfire has not already been determined."They asked, "Should we not then rely on this and abandon striving?"He replied, "Keep working, for everyone is made easy for what he was created. 'As for he who gives and fears Allah'" [Layl 92:5].

Azami 14752

Sahih

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

كنا مع النبي ﷺ في جنازة، فجعل ينكت الأرض بعود، فقال: ليس منكم من أحد إلا وقد فرغ من مقعده من الجنة والنار فقالوا: أفلا نتكل؟ قال: اعملوا فكل ميسر {فأما من أعطى واتقى} [الليل: ٥].

الأعظمي 14752صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Entertainment, play, and movements
Section
A man poking the ground with a stick
Numbering
Jami al-Kamil 14752 (2nd edition)
Azami 14752