يَسْـَٔلُونَكَ عَنِ ٱلْأَنفَالِ ۖ قُلِ ٱلْأَنفَالُ لِلَّهِ وَٱلرَّسُولِ ۖ فَٱتَّقُوا۟ ٱللَّهَ وَأَصْلِحُوا۟ ذَاتَ بَيْنِكُمْ ۖ وَأَطِيعُوا۟ ٱللَّهَ وَرَسُولَهُۥٓ إِن كُنتُم مُّؤْمِنِينَ
“They ask you [O Prophet] regarding the spoils of war. Say, "Their distribution is decided by Allah and His Messenger. So be mindful of Allah, settle your affairs, and obey Allah and His Messenger if you are [true] believers."”
Revealed on the battlefield in response to the Sahaba's dispute over how to divide the ghanima collected at Badr.
Surah al-Anfal was revealed on the plains of Badr regarding the battle and its aftermath.