1 Chronicles 20:1

ISV(i) 1 The Capture of Rabbah
Later the next spring, at the time that kings go out to fight, Joab led out the army, ravaged the territory of the Ammonites, and then went out and attacked Rabbah, while David remained behind in Jerusalem. Joab besieged Rabbah and conquered it.