In a narration recorded by him (the wording is): I asked Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him) about the spoils (anfal), and he said: "The verse was revealed concerning us, the people of Badr, when we disagreed about the spoils and our manners became bad over it. So Allah Almighty took it out of our hands and assigned it to His Messenger, and the Prophet (peace and blessings be upon him) divided it among the people on an equal basis." The narrators of both routes are thiqat (trustworthy).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب التفسير / 11025