Ben Sira 47:4

4 When he was still a boy, he killed a giant to rescue his people. He put a stone in his sling, took aim, and put an end to Goliath's bragging.

Ben Sira 47:4 In-Context

2 As the choice fat portion of the fellowship offering is reserved for the Lord, so David was chosen from among the Israelites.
3 He played with lions and bears as if they were lambs or little goats.
4 When he was still a boy, he killed a giant to rescue his people. He put a stone in his sling, took aim, and put an end to Goliath's bragging.
5 He prayed to the Lord, the Most High, and was given the strength to kill that famous soldier, so that the nations would have respect for the power of his people.
6 The people honored him for killing his tens of thousands, and when he was crowned king, they praised him for being chosen by the Lord.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.