´Narrated Anas [May Allah be pleased with him]:` "While the Messenger of Allah (ﷺ) was returning from Al-Hudaibiyyah it was revealed to him, 'That Allah may forgive you your sins of the past and the future (48:2).' So the Prophet (ﷺ) said: 'An Ayah has been revealed to me which is dearer to me than whatever is upon the earth.' Then the Prophet (ﷺ) recited it for them and they said: 'Congratulations O Messenger of Allah! Allah has explained what He will do with you, but what will He do with us?' So (the following) was revealed: 'That He may admit the believing men and the believing women into Gardens under which rivers flow' up to (His Saying) 'a supreme success (48:5).'"
Hadith Referenceسنن ترمذي / كتاب تفسير القرآن عن رسول الله صلى الله عليه وسلم / 3263
Explanation: 1: (Allah has prescribed jihad so that) Allah may forgive your past and future sins (al-Fath: 2)
2: So that He may admit the believing men and believing women to gardens beneath which rivers flow, where they will abide forever, and so that He may remove from them their sins. And with Allah, this is a great success (al-Fath: 5)
Source: Sunan al-Tirmidhi – Majlis ‘Ilmi Dar al-Da‘wah, New Delhi Edition, Page: 3263