Sayyiduna Sa'd (may Allah be pleased with him) said: Four verses were revealed concerning me. I obtained a sword on the day of Badr, and I said: O Messenger of Allah, give it to me. He (peace and blessings be upon him) said: "Put it back where you picked it up from." I said again: O Messenger of Allah, give it to me. He (peace and blessings be upon him) said: "Put it back where you picked it up from." I said again: O Messenger of Allah, give it to me; shall I remain like one who is destitute? The Messenger of Allah (peace and blessings be upon him) said: "Put it back where you took it from." Then this verse was revealed: "They ask you about the spoils of war. Say: The spoils of war belong to Allah and the Messenger" [Surah al-Anfal: 1].
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قسم الفيء والغنيمة / 12710