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.
O my people, remember now what Balak king of Moab consulted, and what Balaam the son of Beor answered him from Shittim to Gilgal; that you may know the righteousness of the LORD.