Language:
كتاب القدر
82  
Divine Will (Al-Qadar)
(4)
Chapter: "And the Command of Allah is a decree determined"
(4)
Sahih al-Bukhari 6605

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)

حَدَّثَنَا عَبْدَانُ، عَنْ أَبِي حَمْزَةَ، عَنِ الأَعْمَشِ، عَنْ سَعْدِ بْنِ عُبَيْدَةَ، عَنْ أَبِي عَبْدِ الرَّحْمَنِ السُّلَمِيِّ، عَنْ عَلِيٍّ ـ رضى الله عنه ـ قَالَ كُنَّا جُلُوسًا مَعَ النَّبِيِّ صلى الله عليه وسلم وَمَعَهُ عُودٌ يَنْكُتُ فِي الأَرْضِ وَقَالَ ‏"‏ مَا مِنْكُمْ مِنْ أَحَدٍ إِلاَّ قَدْ كُتِبَ مَقْعَدُهُ مِنَ النَّارِ أَوْ مِنَ الْجَنَّةِ ‏"‏‏.‏ فَقَالَ رَجُلٌ مِنَ الْقَوْمِ أَلاَ نَتَّكِلُ يَا رَسُولَ اللَّهِ قَالَ ‏"‏ لاَ اعْمَلُوا فَكُلٌّ مُيَسَّرٌ ‏"‏ ثُمَّ قَرَأَ ‏{‏فَأَمَّا مَنْ أَعْطَى وَاتَّقَى‏}‏ الآيَةَ‏.‏
Reference : Sahih al-Bukhari 6605
In-book reference : Book 82, Hadith 11
USC-MSA web (English) reference : Vol. 8, Book 77, Hadith 602
  (deprecated numbering scheme)