A primitive particle; properly interrogitive what ? (including how ?, why ? and when ?); but also exclamations like what ! (including how !), or indefinitely what (including whatever, and even relatively that which); often used with prefixes in various adverbial or conjugational sneses: - how (long, oft, [-soever]), [no-] thing, what (end, good, purpose, thing), whereby (-fore, -in, -to, -with), (for) why.
752 occurrences in 658 verses in the Hebrew Old Testament.
And Gideon said to him, Oh my Lord, if the LORD be with us, why then is all this befallen us? and where be all his miracles which our fathers told us of, saying, Did not the LORD bring us up from Egypt? but now the LORD has forsaken us, and delivered us into the hands of the Midianites.
And when I saw that you delivered me not, I put my life in my hands, and passed over against the children of Ammon, and the LORD delivered them into my hand: why then are you come up to me this day, to fight against me?
And he said, You have taken away my gods which I made, and the priest, and you are gone away: and what have I more? and what is this that you say to me, What ails you?