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.
Read & study FBV 11:1And it came to pass, at the return of the year, at the time when kings go out to battle , that David sent Joab, and his servants with him, and all Israel; and they destroyed the children of Ammon, and besieged Rabbah. But David tarried at Jerusalem.
Read & study ASV 11:1