1 Samuel 17:28

26 David asked the men who were standing with him, “What will be done for the man who kills this Philistine and removes this disgrace from Israel? Just who is this uncircumcised Philistine, that he should defy the armies of the living God?”

27 The people told him about the offer, saying, “That is what will be done for the man who kills him.”

Now when David’s oldest brother Eliab heard him speaking to the men, his anger burned against David. “Why have you come down here?” he asked. “And with whom did you leave those few sheep in the wilderness? I know your pride and wickedness of heart—you have come down to see the battle!”

29 “What have I done now?” said David. “Was it not just a question?”

30 Then he turned from him toward another and asked about the offer, and those people answered him just as the first ones had answered.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
Now when David’s oldest brother Eliab heard him speaking to the men, his anger burned against David. “Why have you come down here?” he asked. “And with whom did you leave those few sheep in the wilderness? I know your pride and wickedness of heart—you have come down to see the battle!”
KJV
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.
WEB
Eliab his oldest brother heard when he spoke to the men; and Eliab’s anger burned against David, and he said, “Why have you come down? With whom have you left those few sheep in the wilderness? I know your pride and the evil of your heart; for you have come down that you might see the battle.”
ASV
And Eliab his eldest brother heard when he spake unto the men; and Eliab`s anger was kindled against David, and he said, Why art thou come down? and with whom hast thou left those few sheep in the wilderness? I know thy pride, and the naughtiness of thy heart; for thou art come down that thou mightest see the battle.
DARBY
And Eliab, his eldest brother, heard while he spoke to the men; and Eliab's anger was kindled against David, and he said, Why art thou come down? and with whom hast thou left those few sheep in the wilderness? I know thy pride and the naughtiness of thy heart; for thou art come down that thou mightest see the battle.
BLB
And Eliab his oldest brother heard when he spoke to the men, and the anger of Eliab was kindled against David, and he said, “Why [is] this [that] you came down, and with whom have you left those few sheep in the wilderness? I know your pride and the insolence of your heart, for in order you have come down to see the battle.”
ÅB
Eliab, hans eldste bror, hørte hva han talte med mennene om; da ble hans vrede tent opp mot David, og han sa: Hvorfor er du kommet her ned, og til hvem har du overlatt de to-tre sauene der i ørkenen? Jeg kjenner ditt overmot og ditt hjertes ondskap; det er for å se på striden du er kommet her ned.
OTB
Nå hørte Eliab, hans eldste bror, da han talte til mennene; og Eliabs vrede brant mot David, og han sa: "Hvorfor har du kommet ned? Og med hvem har du latt de få sauene i ørkenen? Jeg kjenner ditt hovmod og ditt hjertes ondskap, for du har kommet ned for å se slaget."
B1930
Eliab, hans eldste bror, hørte hvad han talte med mennene om; da optendtes hans vrede mot David, og han sa: Hvorfor er du kommet her ned, og til hvem har du overlatt de to-tre får der i ørkenen? Jeg kjenner ditt overmot og ditt hjertes ondskap; det er for å se på striden du er kommet her ned.

Study notes (Tyndale)

Original text and word study

Cross references