It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he said: We attended a funeral with the Messenger of Allah (peace and blessings be upon him). When we reached Baqi' al-Gharqad, the Messenger of Allah (peace and blessings be upon him) sat down and we sat with him. He (peace and blessings be upon him) took a stick and began to scratch the ground with it, then he raised his blessed head and said: "For every single one of you, and for every soul that is born, its abode in Paradise or in Hell, and whether it is wretched or blessed, is within the knowledge of Allah (and has already been written)." At this a man from the gathering said: (O Messenger of Allah (peace and blessings be upon him),) should we not then give up doing deeds and rely on our decree? For whoever among us is of the people of blessedness will find ease only towards the deeds of blessedness, and whoever is of the people of wretchedness will go only towards wretchedness. The Messenger of Allah (peace and blessings be upon him) said: "No! Rather, keep doing deeds, for to each one is made easy the path (for which he was created). Whoever is of the people of blessedness, the path of the deeds of blessedness will be made easy for him, and whoever is of the people of wretchedness, the path of the deeds of wretchedness will be made easy for him."
Hadith Referenceمسند أبي يعلى الموصلي / مسند علي بن أبي طالب رضي الله عنه / 375
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده صحيح . » «قال سعيد بن محمد السناري: صحيح» «أخرجه صحيح البخاري برقم: 1296، 4661، 4663، 4664، 4665، 4666، 5863، 6231، 7113، وأخرجه صحيح مسلم برقم: 2647، وأخرجه سنن الترمذي برقم: 2136، 3344، وأخرجه سنن أبي داود برقم: 4694، وأخرجه سنن ابن ماجه برقم: 78، وأخرجه مسند أحمد برقم: 622، 1070، 1185، 1352، وأخرجه فتح الباري برقم: 1296، 4661، 6221، 6223، 6231، 7112، وأخرجه مسند البزار برقم: 582، 588، وأخرجه مصنف عبد الرزاق برقم: 20074، وأخرجه المعجم الصغير للطبراني برقم: 911، وأخرجه السنن الكبرى للنسائي برقم: 11790، وأخرجه شرح السنة برقم: 72، مسند ابویعلیٰ ترقیم الاثری: 370»