Then they vanquished them by the leave of Allah , and Da 'ud slew Jalut , and Allah vouchsafed him dominion , and Wisdom and taught him of that which He Willed . And , it not for Allah 's repelling people , some of them by means of others , the earth surely were corrupted ; but Allah is Gracious unto the Worlds .