When Talut set out with the soldiers, he told them that Allah would test them with a river. Whoever drank from it was not with him, and whoever did not taste it was with him, except for one who took a single scoop in his hand.
They drank from it, except for a very few. When Talut crossed with those who believed, some said they had no strength that day against Jalut and his soldiers. But those who were certain that they would meet Allah said: "How many a small company has overcome a large company by Allah's permission! And Allah is with the patient."
As they faced Jalut and his army, they prayed: "Our Lord, pour patience upon us, make our feet firm, and give us victory over the disbelieving people."
They defeated them by Allah's permission, and Dawud (David) killed Jalut. Allah gave Dawud kingship and wisdom and taught him what He willed. Verse 251 adds that if Allah did not repel some people by means of others, the earth would be filled with corruption, but Allah is full of bounty to all the worlds.