2 Samuel 10:8

Overview - 2 Samuel 10
David's messengers, sent to comfort Hanun the son of Nahash, are villanously treated.
The Ammonites, strengthened by the Syrians, are overcome by Joab and Abishai.
15 Shobach, making a new supply of the Syrians at Helam, is slain by David.
Treasury of Scripture Knowledge

2 Samuel 10:8  (King James Version)
And the children of Ammon came out, and put the battle in array at the entering in of the gate: and the Syrians of Zoba, and of Rehob, and Ishtob, and Maacah, were by themselves in the field.

at the entering
This was at the city of Medeba, a city upon the borders of the Ammonites, and in their possession.
1 Chronicles 19:7

6 ; Numbers 13:21 ; Joshua 19:28 ; Judges 1:31