حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ، حَدَّثَنَا زَائِدَةُ بْنُ قُدَامَةَ، عَنْ مَنْصُورِ بْنِ الْمُعْتَمِرِ، عَنْ سَعْدِ بْنِ عُبَيْدَةَ، عَنْ أَبِي عَبْدِ الرَّحْمَنِ السُّلَمِيِّ، عَنْ عَلِيٍّ، رضى الله عنه قَالَ كُنَّا فِي جَنَازَةٍ فِي الْبَقِيعِ فَأَتَى النَّبِيُّ صلى الله عليه وسلم فَجَلَسَ وَجَلَسْنَا مَعَهُ وَمَعَهُ عُودٌ يَنْكُتُ بِهِ فِي الأَرْضِ فَرَفَعَ رَأْسَهُ إِلَى السَّمَاءِ فَقَالَ ‏"‏ مَا مِنْ نَفْسٍ مَنْفُوسَةٍ إِلاَّ قَدْ كُتِبَ مَدْخَلُهَا ‏"‏ ‏.‏ فَقَالَ الْقَوْمُ يَا رَسُولَ اللَّهِ أَفَلاَ نَتَّكِلُ عَلَى كِتَابِنَا فَمَنْ كَانَ مِنْ أَهْلِ السَّعَادَةِ فَإِنَّهُ يَعْمَلُ لِلسَّعَادَةِ وَمَنْ كَانَ مِنْ أَهْلِ الشَّقَاءِ فَإِنَّهُ يَعْمَلُ لِلشَّقَاءِ قَالَ ‏"‏ بَلِ اعْمَلُوا فَكُلٌّ مُيَسَّرٌ أَمَّا مَنْ كَانَ مِنْ أَهْلِ السَّعَادَةِ فَإِنَّهُ يُيَسَّرُ لِعَمَلِ السَّعَادَةِ وَأَمَّا مَنْ كَانَ مِنْ أَهْلِ الشَّقَاءِ فَإِنَّهُ يُيَسَّرُ لِعَمَلِ الشَّقَاءِ ‏"‏ ‏.‏ ثُمَّ قَرَأَ ‏:‏ ‏(‏فأَمَّا مَنْ أَعْطَى وَاتَّقَى * وَصَدَّقَ بِالْحُسْنَى * فَسَنُيَسِّرُهُ لِلْيُسْرَى * وَأَمَّا مَنْ بَخِلَ وَاسْتَغْنَى * وَكَذَّبَ بِالْحُسْنَى * فَسَنُيَسِّرُهُ لِلْعُسْرَى ‏)‏ ‏.‏ قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ ‏.‏

Ali [may Allah be pleased with him] said: “We were at a funeral at Al-Baqi when the Prophet came and sat. So we sat with him. He had a stick with which he was scratching his head toward the heavens, and said: ‘There is not a single soul except that his place of entry has been decreed.’ The people said: ‘O Messenger of Allah! Shall we not then rely upon what has been written upon us? For whoever is t be among the people of bliss, then he shall do that acts that lead to bliss, and whoever is to be among the people of misery, then he shall do the acts that lead to misery?’ He said: ‘Rather, do the deeds, for everyone is facilitated. As for the one who shall be among the people of bliss; then verily he is facilitated to do the acts that lead to bliss. And as for the one who shall be among the people of misery.’ Then he recited: As for him who has Taqwa, And believes in Al-Husna. We will make smooth for him the patch of ease. But he who is greedy and thinks himself sel-sufficient, and denies Al-Husna. We will make smooth for him the path to evil. And what will he wealth avail him when he goes down?” Translation Not Available

Book Ref: Jamiya Tirmidhi Book 47 Hadith 3344
Web Ref:  Jamiya Tirmidhi Vol 5 Book 44 Hadith 3344