This happened many times throughout history, beginning with Muhammad's battles against the polytheist Arabs including the Battle of Badr (624), and battles in Uhud (625), Khandaq (627), Mecca (630) and Hunayn (630).