According to the Hebrew Bible , Bathsheba ( , " Bat Sheva " , " daughter of the oath " ) ( , " ابنة القسم " ) was the wife of Uriah the Hittite and later of David , king of the United Kingdom of Israel and Judah .