In the meanings of synagogues
It has been permitted for those, upon whom war is waged, to fight back they are subjected to wrong and cruelty.
And indeed Allah the Exalted is certainly in full command of helping them victory. [22:39]
Permission has been granted to fight back to those who were forced to get out of their city without any justification except the reason that they pronounced, "Our Sustainer Lord is Allah".
Realize it; had Allah the Exalted were not repelling people, a set of people by some others:
Certainly monasteries and churches and synagogues and mosques would have been demolished where the name of Allah is mentioned quite often.
And certainly Allah the Exalted will in future also help the one who helps Him.
It is true that Allah the Exalted is certainly the Almighty Dominant. [22:40]