jerusalem has been the holiest city in jewish tradition since , according to the hebrew bible , king david of israel first established it as the capital of the united kingdom of israel in c. 1000 bce , and his son , king solomon , commissioned the building of the first temple in the city .