In that region, kings usually went with their armies to fight their enemies in the springtime. But the following year, in the springtime, David did not do that. Instead, he stayed in Jerusalem, and he sent his commander Joab to lead the army. So Joab went with the other officers and the rest of the Israeli army. They crossed the Jordan River and defeated the army of the Ammon people-group. Then they surrounded their capital city, Rabbah.
Read & study T4T 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