1 Samuel 17:13-23

13 The three eldest sons of Jesse had followed Saul to the battle; and the names of his three sons who went to the battle were Eli'ab the first-born, and next to him Abin'adab, and the third Shammah.
14 David was the youngest; the three eldest followed Saul,
15 but David went back and forth from Saul to feed his father's sheep at Bethlehem.
16 For forty days the Philistine came forward and took his stand, morning and evening.
17 And Jesse said to David his son, "Take for your brothers an ephah of this parched grain, and these ten loaves, and carry them quickly to the camp to your brothers;
18 also take these ten cheeses to the commander of their thousand. See how your brothers fare, and bring some token from them."
19 Now Saul, and they, and all the men of Israel, were in the valley of Elah, fighting with the Philistines.
20 And David rose early in the morning, and left the sheep with a keeper, and took the provisions, and went, as Jesse had commanded him; and he came to the encampment as the host was going forth to the battle line, shouting the war cry.
21 And Israel and the Philistines drew up for battle, army against army.
22 And David left the things in charge of the keeper of the baggage, and ran to the ranks, and went and greeted his brothers.
23 As he talked with them, behold, the champion, the Philistine of Gath, Goliath by name, came up out of the ranks of the Philistines, and spoke the same words as before. And David heard him.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.