And they routed them , by the leave of God , and David slew Goliath ; and God gave him the kingship , and Wisdom , and He taught him such as He willed . Had God not driven back the people , some by the means of others , the earth had surely corrupted ; but God is bounteous unto all beings .