Sahih Bukhari – Hadith No : 6685

Narrated `Ali: While we were sitting with the Prophet who had a stick with which he was scraping the earth, he lowered his head and said, “There is none of you but has his place assigned either in the Fire or in Paradise.” Thereupon a man from the people said, “Shall we not depend upon this, O Allah’s Apostle?” The Prophet said, “No, but carry on and do your deeds, for everybody finds it easy to do such deeds (as will lead him to his place).” The Prophet then recited the Verse: ‘As for him who gives (in charity) and keeps his duty to Allah..’ (92.5)

Hadith In Arabic Text :

حدثنا عبدان، عن أبي حمزة، عن الأعمش، عن سعد بن عبيدة، عن أبي عبد الرحمن السلمي، عن علي رضى الله عنه قال كنا جلوسا مع النبي صلى الله عليه وسلم ومعه عود ينكت في الأرض وقال ‏”‏ ما منكم من أحد إلا قد كتب مقعده من النار أو من الجنة ‏”‏‏.‏ فقال رجل من القوم ألا نتكل يا رسول الله قال ‏”‏ لا اعملوا فكل ميسر ‏”‏ ثم قرأ ‏{‏فأما من أعطى واتقى‏}‏ الآية‏.‏

Chapter : Divine Will (Al-Qadar) – كتاب القدر