Judges 7:4-7

4And the Lord said to Gideon, “The people are still too many. Take them down to the water, and I will test them for you there, and anyone of whom I say to you, ‘This one shall go with you,’ shall go with you, and anyone of whom I say to you, ‘This one shall not go with you,’ shall not go.” 5So he brought the people down to the water. And the Lord said to Gideon, “Every one who laps the water with his tongue, as a dog laps, you shall set by himself. Likewise, every one who kneels down to drink.” 6And the number of those who lapped, putting their hands to their mouths, was 300 men, but all the rest of the people knelt down to drink water. 7And the Lord said to Gideon, a“With the 300 men who lapped I will save you and give the Midianites into your hand, and let all the others go every man to his home.”
Copyright information for ESV