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. "
English reference: Vol. 1, Book 1, Hadith 78
Arabic reference: Book 1, Hadith 82