And they defeated them by God s ’ leave , and David killed Goliath , and God gave him sovereignty and wisdom , and taught him as He willed . Were it not for God restraining the people , some by means of others , the earth would have gone to ruin .