By the permission of Allah, they routed them. David slew Goliath, and Allah bestowed on him the kingship and wisdom, and taught him from that He willed. Had Allah not pushed the people, some by the other, the earth would have been corrupted. But Allah is Bountiful to the worlds.