When the chest was put between them and their enemies...
When the chest was put between them and their enemies, one who turned away from it became unbeliever.[^2] The Prophet told them, “In your path in this desert you will see a canal. Whosoever will drink from it Allah will have nothing to do with him and the one who does not drink will be obeying Allah.” When they reached the canal Allah made it known to them that He won’t mind if they drank a cupful from it. But excepting a few of them all drank profusely.
There were 60,000 who drank full throat and this was a test for them. According to the narration of Ibn Babawayh which has been authentically narrated from Imam as-Sadiq those who did not drink more than even a handful were 313 males. After passing by the canal they confronted the army of Jalut and observed the strength and the awe of that army. Those who had drank much water said, today we do not have guts to fight with the army of Jalut.
As Allah says, So when he had crossed it, he and those who believed with him, they said, we have today no power against Jalut and his forces. (2:249) Those who were sure that they would meet their Lord said, How often has a small party vanquished a numerous host by Allah’s permission, and Allah is with the patent). ( And when they went out against Jalut and his forces they said, Our Lord! Pour down upon us patience, and make our steps firm and assist us against the unbelieving people.
(2:250) Imam said, “These were the words of those who had quenched their thirst from the canal. (War started and) Dawud came up and stood in front of Jalut. He was mounted on an elephant. He had a crown on his head and a Ruby on his forehead shone, and his army had lined up before him. Dawud took one out of the three stones that he had picked up from his path, put it in the sling and flung it toward the army on the right of Jalut.
That stone rose high in air and fell on the right flank of the army. It killed whomsoever it hit instantly until all fled. He flung his second stone at the left ranks and the soldiers on that side also ran away. He threw the third stone on Jalut. It rose up and hit the jewel shining on his forehead, pierced it and reached his brain. Jalut fell down and went to Hell as the Almighty says, So they put them to flight by Allah’s permission.
And Dawud slew Jalut, and Allah gave him kingdom and wisdom, and taught him of what He pleased.