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 .