Quran 9:10-13 Reason For The Directive Of War
Also 9:6 makes it seem like it was a directive to defend yourselves since they fought first. It doesn’t seem like a divine advance or punishment like the ones given to other prophets perhaps