1 Chronicles 20:1

Now it happened that, after the course of a year, in the time when kings usually go forth to war, Joab gathered an army with experienced soldiers, and he laid waste to the land of the sons of Ammon. And he continued on and besieged Rabbah. But David was staying in Jerusalem when Joab struck Rabbah and destroyed it

Other versions

King James Version

And it came to pass, that after the year was expired, at the time that kings go out to battle, Joab led forth the power of the army, and wasted the country of the children of Ammon, and came and besieged Rabbah. But David tarried at Jerusalem. And Joab smote Rabbah, and destroyed it.

English Standard Version

In the spring of the year, the time when kings go out to battle, Joab led out the army and ravaged the country of the Ammonites and came and besieged Rabbah. But David remained at Jerusalem. And Joab struck down Rabbah and overthrew it.

New International Version

In the spring, at the time when kings go off to war, Joab led out the armed forces. He laid waste the land of the Ammonites and went to Rabbah and besieged it, but David remained in Jerusalem. Joab attacked Rabbah and left it in ruins.