so they defeated them by permission of allah and david killed goliath and allah gave him the kingship and prophethood and taught him from that which he willed. and if it were not for allah checking people by means of others the earth would have been corrupted but allah is full of bounty to the worlds.
فهزموهم بإذن الله وقتل داوود جالوت وآتاه الله الملك والحكمة وعلمه مما يشاء ولولا دفع الله الناس بعضهم ببعض لفسدت الأرض ولكن الله ذو فضل على العالمين