He did not seek guidance from Yahweh, so Yahweh killed him and turned over the kingdom to David son of Jesse.