In spring, at the time of year when kings go out to make war, Joab led the Israelite army in attacks against the country of the Ammonites, also besieging Rabbah. However, David remained behind in Jerusalem. Joab attacked Rabbah and destroyed it.
Read & study FBV 20:1And it came to pass, at the time of the return of the year, at the time when kings go out to battle , that Joab led forth 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 overthrew it.
Read & study ASV 20:1