And afterward Jehoshaphat king of Judah entered into an alliance with Ahaziah king of Israel (now this was an unrighteous man),