وَمِنْ مُسْنَدِ عَلِيِّ بْنِ أَبِي طَالِبٍ رَضِيَ اللَّهُ عَنْهُ
5  
Musnad 'Ali Ibn Abi Talib
Musnad Ahmad 1067, 1068
It was narrated that `Ali (رضي الله عنه) said:
We were at a funeral in Baqee’ al-Gharqad, and the Messenger of Allah (ﷺ) came to us. He sat down and we sat down around him. He had a stick and he started to hit the ground with it, then he lifted his gaze and said: `There is no one among you, no living soul, but Allah has decreed its place in Paradise or Hell, and it has been decreed whether it is doomed or blessed.” The people said. O Messenger of Allah (ﷺ), shouldn`t we rely on our destiny and stop striving? Then whoever is one of the blessed, will end up blessed, and whoever is one of the doomed, will end up doomed. The Messenger of Allah (ﷺ) said: “Rather you should strive, for everyone is helped (to do their deeds): the doomed are helped to do the deeds of the doomed and the blessed are helped to do the deeds of the blessed.` Then he recited: `As for him who gives (in charity) and keeps his duty to Allah and fears Him, And believes in Al-Husna. We will make smooth for him the path of ease (goodness). But he who is greedy miser and thinks himself self-sufficient. And belies Al-Husna We will make smooth for him the path for evil` [Al-Lail.92:5–10]. (Al-Husna: The Best (i.e. either La ilaha illAllaah: none has the right to be worshipped but Allah) or a reward from Allah (i.e. Allah will compensate him for what he will spend in Allah`s way or bless him with Paradise) Footnote from Hilali/Khan Translation of Meanings) It was narrated that ‘Ali (رضي الله عنه) said: We were at a funeral in Baqee` al-Gharqad - and he narrated a similar report
حَدَّثَنَا عَبْدُ الرَّحْمَنِ، حَدَّثَنَا زَائِدَةُ، عَنْ مَنْصُورٍ، عَنْ سَعْدِ بْنِ عُبَيْدَةَ، عَنْ أَبِي عَبْدِ الرَّحْمَنِ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ قَالَ كُنَّا مَعَ جَنَازَةٍ فِي بَقِيعِ الْغَرْقَدِ فَأَتَانَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَجَلَسَ وَجَلَسْنَا حَوْلَهُ وَمَعَهُ مِخْصَرَةٌ يَنْكُتُ بِهَا ثُمَّ رَفَعَ بَصَرَهُ فَقَالَ مَا مِنْكُمْ مِنْ نَفْسٍ مَنْفُوسَةٍ إِلَّا وَقَدْ كُتِبَ مَقْعَدُهَا مِنْ الْجَنَّةِ وَالنَّارِ إِلَّا قَدْ كُتِبَتْ شَقِيَّةً أَوْ سَعِيدَةً فَقَالَ الْقَوْمُ يَا رَسُولَ اللَّهِ أَفَلَا نَمْكُثُ عَلَى كِتَابِنَا وَنَدَعُ الْعَمَلَ فَمَنْ كَانَ مِنْ أَهْلِ السَّعَادَةِ فَسَيَصِيرُ إِلَى السَّعَادَةِ وَمَنْ كَانَ مِنْ أَهْلِ الشِّقْوَةِ فَسَيَصِيرُ إِلَى الشِّقْوَةِ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بَلْ اعْمَلُوا فَكُلٌّ مُيَسَّرٌ أَمَّا مَنْ كَانَ مِنْ أَهْلِ الشِّقْوَةِ فَإِنَّهُ يُيَسَّرُ لِعَمَلِ الشِّقْوَةِ وَأَمَّا مَنْ كَانَ مِنْ أَهْلِ السَّعَادَةِ فَإِنَّهُ يُيَسَّرُ لِعَمَلِ السَّعَادَةِ ثُمَّ قَرَأَ ‏{‏فَأَمَّا مَنْ أَعْطَى وَاتَّقَى‏}‏ إِلَى قَوْلِهِ ‏{‏فَسَنُيَسِّرُهُ لِلْعُسْرَى‏}.

حَدَّثَنَا زِيَادُ بْنُ عَبْدِ اللَّهِ الْبَكَّائِيُّ حَدَّثَنَا مَنْصُورٌ عَنْ سَعْدِ بْنِ عُبَيْدَةَ عَنْ أَبِي عَبْدِ الرَّحْمَنِ عَنْ عَلِيٍّ رَضِيَ اللَّهُ عَنْهُ قَالَ كُنَّا مَعَ جَنَازَةٍ فِي بَقِيعِ الْغَرْقَدِ فَذَكَرَ مَعْنَاهُ‏.‏

Grade: Sahih (Darussalam), al-Bukhari (1362) and Muslim (2647)], Sahih (Darussalam)] (Darussalam)
Reference : Musnad Ahmad 1067, 1068
In-book reference : Book 5, Hadith 486