Sunan Ibn Majah 78
It was narrated that 'Ali said:
"We were sitting with the Prophet (ﷺ) and he had a stick in his hand. He scratched in the ground with it, then raised his head and said: 'There is no one among you but his place in Paradise or Hell has already been decreed.' He was asked: 'O Messenger of Allah, should we not then rely upon that?' He said: 'No, strive and do not rely upon that, for it will be made easy for each person to do that for which he was created.'  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 a greedy miser and thinks himself self-sufficient. And denies Al-Husna. We will make smooth for him the path for evil. "
حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا وَكِيعٌ، ح وَحَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا أَبُو مُعَاوِيَةَ، وَوَكِيعٌ، عَنِ الأَعْمَشِ، عَنْ سَعْدِ بْنِ عُبَيْدَةَ، عَنْ أَبِي عَبْدِ الرَّحْمَنِ السُّلَمِيِّ، عَنْ عَلِيٍّ، قَالَ كُنَّا جُلُوسًا عِنْدَ النَّبِيِّ ـ صلى الله عليه وسلم ـ وَبِيَدِهِ عُودٌ فَنَكَتَ فِي الأَرْضِ ثُمَّ رَفَعَ رَأْسَهُ فَقَالَ ‏"‏ مَا مِنْكُمْ مِنْ أَحَدٍ إِلاَّ وَقَدْ كُتِبَ مَقْعَدُهُ مِنَ الْجَنَّةِ وَمَقْعَدُهُ مِنَ النَّارِ ‏"‏ ‏.‏ قِيلَ يَا رَسُولَ اللَّهِ أَفَلاَ نَتَّكِلُ قَالَ ‏"‏ لاَ اعْمَلُوا وَلاَ تَتَّكِلُوا فَكُلٌّ مُيَسَّرٌ لِمَا خُلِقَ لَهُ ‏"‏ ‏.‏ ثُمَّ قَرَأَ {فَأَمَّا مَنْ أَعْطَى وَاتَّقَى *  وَصَدَّقَ بِالْحُسْنَى * فَسَنُيَسِّرُهُ لِلْيُسْرَى * وَأَمَّا مَنْ بَخِلَ وَاسْتَغْنَى * وَكَذَّبَ بِالْحُسْنَى * فَسَنُيَسِّرُهُ لِلْعُسْرَى}‏ ‏.‏