A. Yusuf Ali:Translation:
Be not weary and faint-hearted, crying for peace,
when you should be 4859 uppermost: for Allah is with
you, and will never put you in loss for your (good)
deeds.

Muhammad Asad:Translation:
AND SO, [when you fight in a just cause,] do not lose heart and [never] beg for peace: for, seeing that God is with you, you are bound to rise high [in the end]; 40 and never will He let your [good] deeds go to waste.
4859 To those who are trying to root out evil, and have authority to do so, the question is not of peace or conflict, but of whether Good or Evil is to prevail. They must remember the Good must ultimately prevail, and Allah's help is with those who, as far as men can, are trying to further the universal Plan. Cf. n. 4847 to verse 22 above.