So Joab and the soldiers who were with him attacked the Arameans in battle formation, and the Arameans retreated in front of him. 