In the spring, at the time of year when kings go out to war, David sent out Joab and his officers and the whole Israelite army on an attack. They massacred the Ammonites and besieged Rabbah. However, David remained behind in Jerusalem.
(Only Og, king of Bashan, was left of the race of the Rephaim. He had a bed made of iron that was nine cubits long and four cubits wide. It's still in the Ammonite town of Rabbah.)