And when they had come, he looked at Eliab and said, “Surely Yahweh’s anointed is before him.”
“before him.” This is understood culturally as, “in His presence,” that is, in God’s presence. Samuel saw Eliab and thought that surely because of his kingly characteristics he must be God’s choice for the next king.