There is none among you but has his place written for him

There is none among you but has his place written for him

Narrated Ali: While the Prophet (peace be upon him) was in a funeral procession, he picked up something and started scraping the ground with it, and said, “There is none among you but has his place written for him either in the Hell Fire or in Paradise.” They said, “O Allah’s Apostle! Shall we not depend upon what has been written for us and give up deeds?” He said, “Carry on doing (good) deeds, for everybody will find easy to do such deeds as will lead him to his destined place for which he has been created. So he who is destined to be among the happy (in the Hereafter), will find it easy to do the deeds characteristic of such people, while he who is destined to be among the miserable ones, will find it easy to do the deeds characteristic of such people.” Then he recited:
“As for him who gives (in charity) and fears Allah, and believes in the best…” (92.5-10)
Sahih Al-Bukhari – Book 60 Hadith 474