Sayyiduna Anas (may Allah be pleased with him) narrates regarding the statement of Allah Almighty: (The command of Allah Almighty is) "Indeed, We have given you a clear victory, so that Allah may forgive you your past and future sins." Sayyiduna Anas (may Allah be pleased with him) states: This verse was revealed to the Prophet (peace and blessings be upon him) upon his return from Hudaybiyyah. The companions of the Prophet (peace and blessings be upon him) were facing distress and sorrow. The Prophet (peace and blessings be upon him) said: A verse has been revealed to me which is more beloved to me than the world and all that is in it. Then the Prophet (peace and blessings be upon him) recited this verse before the people. The people said: O Messenger of Allah! Allah Almighty has stated what He has done for you, but what will He do for us? (This has not been mentioned.) So Allah Almighty then revealed the following verse: "So that He may admit the believing men and believing women to gardens beneath which rivers flow."
Hadith Referenceصحیح ابن حبان / كتاب البر والإحسان / 370
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «صحيح الموارد» (1474/ 1760): خ أوله عن عمر.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين إسحاق بن إبراهيم: هو ابن راهوية، وسعيد: هو ابن أبي عروبة.