So they routed them by Allah's permission and Dawud slew Goliath...
So they routed them by Allah's permission and Dawud slew Goliath, and Allah gave him kingship 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 (251). These are the signs of' Allah: We recite them to you with truth: and most surely you are (one) of' the apostles (252). **GENERAL COMMENT ** All these verses were obviously revealed together.
The connection between the obligation of fighting, the exhortation of a goodly loan to Allah and the moral of the story of Talut, Dawud and Goliath needs no explanation. The import of the verses is to show how fighting in the way of Allah strengthens the collective life, what the spirit is by which a nation goes forward in its worldly and religious life, and what gives it its real happiness and felicity.
Allah declares that jihad is obligatory for the Muslims, calls them to spend in His way, by contributing in preparation for war so that their military power increases and they are ready for their enemies. This spending has been called " lending to Allah" because it is done in His way. Also, it very forcefully exhorts the hearers to spend in His way to gain nearness to Him. Then comes the story of Talut, Dawud and Goliath, so that the believers who are told to fight should take lessons from it.
The moral is that the kingdom and victory belong to faith and piety, even if its adherents be small in number: and defeat and destruction is the fare of hypocrisy and sin, even if its followers be numerous. See how the Israelites lived in disgrace and servitude as long as they remained inert and idle, and were too lazy to do anything to improve their condition.
But when they stood up to fight in the way of Allah and sought help from the word of truth, Allah helped them to vanquish their enemy, even though only a few of them were really truthful. Look at the majority of them turning back when fighting was prescribed for them, and objecting to the appointment of Talut, and drinking from the stream, and saying that they had no strength to fight against Goliath and his armies.
In spite of all these shortcomings Allah made them victorious; they vanquished their enemy by the permission of Allah; Dawud slew Goliath and kingdom was established in them. They were given a new life and their power and sovereignty came back to them.