And Dawood slew Jalut , and Allah gave him kingdom and wisdom , and taught him of what He pleased . And were it not for Allah 's repelling some men with others , the earth would certainly be in a state of disorder ; but Allah is Gracious to the creatures .