Meanwhile, Joab had been in the country of Ammon, attacking the city of Rabbah. He captured the royal fortress