Ben Sira 47:4

4 Slew he not a giant, when he was yet but young? and did he not take away reproach from the people, when he lifted up his hand with the stone in the sling, and beat down the boasting of Goliath?

Ben Sira 47:4 In-Context

2 As is the fat taken away from the peace offering, so was David chosen out of the children of Israel.
3 He played with lions as with kids, and with bears as with lambs.
4 Slew he not a giant, when he was yet but young? and did he not take away reproach from the people, when he lifted up his hand with the stone in the sling, and beat down the boasting of Goliath?
5 For he called upon the most high Lord; and he gave him strength in his right hand to slay that mighty warrior, and set up the horn of his people.
6 So the people honoured him with ten thousands, and praised him in the blessings of the Lord, in that he gave him a crown of glory.
The King James Version is in the public domain.