Four verses were revealed concerning me. I had obtained a sword and brought it to the Prophet ﷺ.I said, "Messenger of Allah, grant it to me as my share of the spoils."He said, "Put it down."Then I stood up, and the Prophet ﷺ said to me, "Put it back where you took it from."Then I stood up again and said, "Grant it to me as my share, Messenger of Allah."He said, "Put it down."Then I stood up and said, "Messenger of Allah, grant it to me. Am I to be treated like one who is of no use in battle?"The Prophet ﷺ said to him, "Put it back where you took it from."He said, "Then this verse was revealed, 'They ask you about the spoils of war. Say, the spoils belong to Allah and the Messenger'" [Anfal 8:1].
حدثنا محمد بن المثنى وابن بشار واللفظ لابن المثنى قالا حدثنا محمد بن جعفر حدثنا شعبة عن سماك بن حرب
نزلت في أربع آيات أصبت سيفا فأتى به النبي ﷺ فقال يا رسول الله نفلنيه فقال ضعه ثم قام فقال له النبي ﷺ ضعه من حيث أخذته ثم قام فقال نفلنيه يا رسول الله فقال ضعه فقام فقال يا رسول الله نفلنيه أؤجعل كمن لا غناء له فقال له النبي ﷺ ضعه من حيث أخذته قال فنزلت هذه الآية {يسألونك عن الأنفال قل الأنفال لله والرسول}