8:1
Surat al-Anfal is Madinan, except from verse 30 to verse 36, which is Makkan; its verses are 75 or 77; it was revealed after al-Baqara.
When the Muslims differed over the spoils of Badr, the young men said: "They are ours, for we engaged in the fighting," and the elders said: "We were a support for you beneath the banners, and had you broken ranks you would have returned to us, so do not take them for yourselves alone," there was revealed:
﴿They ask thee﴾ O Muhammad ﴿of the spoils of war﴾ the booty, to whom it belongs ﴿Say﴾ say to them ﴿The spoils of war belong to Allah﴾ He places them wherever He wills ﴿and the messenger﴾ he distributes them by the command of Allah; and he (peace be upon him) distributed them among them equally. Al-Hakim narrated it in al-Mustadrak. ﴿so keep your duty to Allah, and adjust the matter of your difference﴾ that is, the reality of what is between you, with affection and by abandoning dispute ﴿and obey Allah and His messenger, if ye are believers﴾ truly.
8:2
﴿They only are the (true) believers﴾, i.e. those perfect in faith, ﴿who, when Allah is mentioned﴾, i.e. His threat, ﴿feel fear﴾, i.e. are afraid, ﴿their hearts, and when His revelations are recited unto them they increase their faith﴾, i.e. in assent, ﴿and who trust in their Lord﴾: in Him they put their confidence, and not in other than Him.
8:3
﴿Who establish worship﴾, i.e. they perform it with its due rights, ﴿and of that We have bestowed on them﴾, i.e. have given them, ﴿they spend﴾ in obedience to Allah.
8:4
﴿Those﴾ who are described as mentioned ﴿are they who are in truth believers﴾, i.e. sincerely, without doubt. ﴿For them are grades﴾, i.e. ranks in Paradise, ﴿with their Lord, and pardon, and a bountiful provision﴾ in Paradise.
8:5
﴿Even as thy Lord caused thee to go forth from thy home with the Truth﴾: it is connected to "caused to go forth". ﴿And lo! a party of the believers were averse﴾ to going forth. The clause is a circumstantial clause (ḥāl) from the kāf of "caused thee to go forth", and "even as" is the predicate of an omitted subject, i.e. this situation, in their aversion to it, is like your being brought out while they were averse, and that was good for them; so it is likewise here too. That was because Abu Sufyan had come from al-Sham with a caravan, so the Prophet (peace be upon him) and his companions went out to take it as booty. Quraysh learned of it, so Abu Jahl and the fighters of Makka went out to defend it; they were the nafir (the war party). Abu Sufyan took the caravan by the coastal road and it escaped. Abu Jahl was told: "Turn back," but he refused and marched on to Badr. The Prophet (peace be upon him) consulted his companions and said: "Allah has promised me one of the two parties." They agreed with him to fight the nafir, but some of them disliked that and said: "We have not made ready for it," as Allah, the Exalted, says:
8:6
﴿Disputing with thee of the Truth﴾, i.e. the fighting, ﴿after it had been made manifest﴾, i.e. had become clear to them, ﴿as if they were being driven to death while they looked on﴾ at it in plain sight, in their aversion to it.
8:7
﴿And﴾ remember ﴿when Allah promised you one of the two bands﴾ the caravan or the army ﴿that it should be yours, and ye longed﴾ wished ﴿that other than the armed one﴾ that is, the one of might and weapons, which was the caravan ﴿might be yours﴾ because of the fewness of its numbers and its reinforcements, unlike the army. ﴿And Allah willed that He should cause the Truth to triumph﴾ make it manifest ﴿by His words﴾ that had gone before, through the triumph of Islam ﴿and cut the root of the disbelievers﴾ their last one, by extermination; so He commanded you to fight the army.
8:8
﴿That He might cause the Truth to triumph and bring to naught﴾ efface ﴿vanity﴾ disbelief ﴿however much the guilty might oppose﴾ that, meaning the polytheists.