Sayyiduna Abd al-Rahman bin Awf (may Allah be pleased with him) narrates: Islam came down at a time of aversion and hardship, and we found the greatest good in what we disliked. We set out with the Prophet (peace and blessings be upon him) from Makkah, and in that we were granted elevation and victory. We set out with the Prophet (peace and blessings be upon him) towards Badr in the state that Allah Almighty mentioned: (Allah Almighty says:) "And a party of the believers disliked it. They disputed with you about the truth after it had become clear, as if they were being driven to death while they looked on. And when Allah promised you one of the two parties, that it would be yours, and you wished that the one without strength (shawkah) would be yours." Here "shawkah" means the Quraysh. Allah Almighty granted us elevation and victory in that situation, and we found the greatest good in what we had disliked.
Imam al-Bazzar recorded it. Its chain contains a narrator, Abd al-Aziz bin Imran, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب التفسير / 11026