At last, they routed them by the leave of Allâh, and David killed Jâlût, and Allâh gave him the sovereignty and the wisdom and taught him of what He pleased. And had it not been for Allâh repelling the people - some of them by the others - the earth would have been in a state of disorder; but Allâh is full of grace to the worlds.