Whatever God restored for His messenger was not the result of your war efforts, whether you fought on horses or on foot. God is the One who sends His messengers against whomever He wills. God is Omnipotent.
وَما أَفاءَ اللَّهُ عَلىٰ رَسولِهِ مِنهُم فَما أَوجَفتُم عَلَيهِ مِن خَيلٍ وَلا رِكابٍ وَلٰكِنَّ اللَّهَ يُسَلِّطُ رُسُلَهُ عَلىٰ مَن يَشاءُ وَاللَّهُ عَلىٰ كُلِّ شَىءٍ قَديرٌ
wa maaa afaaa’al laahu ‘alaaa Rasoolihee minhum famaaa awjaftum ‘alaihi min khailiinw wa laa rikaabinw wa laakinnal laaha yusallitu Rusulahoo ‘alaa many yashaaa’; wallaahu ‘alaa kulli shai’in Qadeer