Musnad Ahmad 1110
It was narrated that ‘Ali (رضي الله عنه) said:
We were sitting with the Prophet (ﷺ) at a funeral - I [the narrator] think he said in Baqee` al-Gharqad - and he struck the ground (with a stick), then he lifted his head and said: “There is no one among you but Allah has decreed his place in Paradise or his place in Hell.” We said: O Messenger of Allah (ﷺ), shouldn`t we rely on that? He said: `No, rather strive, for each will be enabled [to do the appropriate deeds].” 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)
وَكِيعٌ حَدَّثَنَا الْأَعْمَشُ، عَنْ سَعْدِ بْنِ عُبَيْدَةَ، عَنْ أَبِي عَبْدِ الرَّحْمَنِ السُّلَمِيِّ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ قَالَ كُنَّا جُلُوسًا مَعَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي جَنَازَةٍ أُرَاهُ قَالَ بِبَقِيعِ الْغَرْقَدِ قَالَ فَنَكَتَ فِي الْأَرْضِ ثُمَّ رَفَعَ رَأْسَهُ فَقَالَ مَا مِنْكُمْ مِنْ أَحَدٍ إِلَّا وَقَدْ كُتِبَ مَقْعَدُهُ مِنْ الْجَنَّةِ وَمَقْعَدُهُ مِنْ النَّارِ قَالَ قُلْنَا يَا رَسُولَ اللَّهِ أَفَلَا نَتَّكِلُ قَالَ لَا اعْمَلُوا فَكُلٌّ مُيَسَّرٌ ثُمَّ قَرَأَ ‏{‏فَأَمَّا مَنْ أَعْطَى وَاتَّقَى‏}‏ إِلَى قَوْلِهِ ‏{‏فَسَنُيَسِّرُهُ لِلْعُسْرَى‏}‏‏.‏