۞ Certainly Allah was well pleased with the believers when they swore allegiance to you under the tree, and He knew what was in their hearts, so He sent down tranquillity on them and rewarded them with a near victory, 18 And many gains will they acquire (besides): and Allah is Exalted in Power, Full of Wisdom. 19 Allah has promised you abundant spoils that you will capture, and He has hastened for you this, and He has restrained the hands of men from you, that it may be a sign for the believers, and that He may guide you to a Straight Path. 20 Besides these, there were other gains which you could not receive, but God has full control over them. God has power over all things. 21 And had those who disbelieve fought against you, surely they would have turned their backs, and then they would have found no patron nor helper. 22 It is the law of Allah which hath taken course aforetime. Thou wilt not find for the law of Allah aught of power to change. 23 It is He who withheld their hands from you, and your hands from them in the valley of Makkah, after giving you victory over them. God sees what you do. 24 It were those who disbelieved who hindered you from (going to) the Holy Mosque, preventing your offerings from arriving at the place of sacrifice. Had it not been for (the presence of) believers, men and women, (among the unbelievers) of whom you were unaware, and whom you might have trampled and thus incurred guilt unknowingly on account of them, (the matter would have been settled). (But this was not done) so that God may admit into His favour whom He willed. If these (believers) had been separated from them, He would have inflicted a grievous punishment on the unbelievers. 25 Since the disbelievers held zealous ignorance in their hearts, like that of the pre-Islamic age of darkness, God gave confidence to His Messenger and to the believers, binding them to the principle of piety which they deserve. God has the knowledge of all things. 26