By the will of God they defeated them , and David killed Goliath , and God gave him kingship and wisdom , and taught him whatsoever He pleased . If God did not make men deter one another this earth would indeed be depraved .