1 Samuel 17:12-30 King James Version (KJV)
12 Now David was the son of that Ephrathite of Bethlehemjudah, whose name was Jesse; and he had eight sons: and the man went among men for an old man in the days of Saul.
13 And the three eldest sons of Jesse went and followed Saul to the battle: and the names of his three sons that went to the battle were Eliab the firstborn, and next unto him Abinadab, and the third Shammah.
14 And David was the youngest: and the three eldest followed Saul.
15 But David went and returned from Saul to feed his father's sheep at Bethlehem.
16 And the Philistine drew near morning and evening, and presented himself forty days.
17 And Jesse said unto David his son, Take now for thy brethren an ephah of this parched corn, and these ten loaves, and run to the camp of thy brethren;
18 And carry these ten cheeses unto the captain of their thousand, and look how thy brethren fare, and take their pledge.
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 up early in the morning, and left the sheep with a keeper, and took, and went, as Jesse had commanded him; and he came to the trench, as the host was going forth to the fight, and shouted for the battle.
21 For Israel and the Philistines had put the battle in array, army against army.
22 And David left his carriage in the hand of the keeper of the carriage, and ran into the army, and came and saluted his brethren.
23 And as he talked with them, behold, there came up the champion, the Philistine of Gath, Goliath by name, out of the armies of the Philistines, and spake according to the same words: and David heard them.
24 And all the men of Israel, when they saw the man, fled from him, and were sore afraid.
25 And the men of Israel said, Have ye seen this man that is come up? surely to defy Israel is he come up: and it shall be, that the man who killeth him, the king will enrich him with great riches, and will give him his daughter, and make his father's house free in Israel.
26 And David spake to the men that stood by him, saying, What shall be done to the man that killeth this Philistine, and taketh away the reproach from Israel? for who is this uncircumcised Philistine, that he should defy the armies of the living God?
27 And the people answered him after this manner, saying, So shall it be done to the man that killeth him.
28 And Eliab his eldest brother heard when he spake unto the men; and Eliab's anger was kindled against David, and he said, Why camest thou down hither? and with whom hast thou left those few sheep in the wilderness? I know thy pride, and the naughtiness of thine heart; for thou art come down that thou mightest see the battle.
29 And David said, What have I now done? Is there not a cause?
30 And he turned from him toward another, and spake after the same manner: and the people answered him again after the former manner.