When Eliab, his oldest brother, heard him talking with the men, his anger burned against David, and he said, “Why did you come down here? Who did you leave those few sheep with in the wilderness? I know your pride and the wickedness of your heart — you came down only to watch the battle.”
In context
26David asked the men standing near him, “What will be done for the man who kills this Philistine and removes this disgrace from Israel? Who is this uncircumcised Philistine, that he should defy the armies of the living God?” 27The people answered him the same way, saying, “This is what will be done for the man who kills him.” 28When Eliab, his oldest brother, heard him talking with the men, his anger burned against David, and he said, “Why did you come down here? Who did you leave those few sheep with in the wilderness? I know your pride and the wickedness of your heart — you came down only to watch the battle.” 29David said, “What have I done now? Was it not just a question?” 30He turned away from him to someone else and asked the same thing, and the people answered him just as before.