2 Samuel 18:2

2 David sent out his troops, a third under the command of Joab, a third under Joab’s brother Abishai son of Zeruiah, and a third under Ittai the Gittite. The king told the troops, “I myself will surely march out with you.”

Read 2 Samuel 18:2 Using Other Translations

And David sent forth a third part of the people under the hand of Joab, and a third part under the hand of Abishai the son of Zeruiah, Joab's brother, and a third part under the hand of Ittai the Gittite. And the king said unto the people, I will surely go forth with you myself also.
And David sent out the army, one third under the command of Joab, one third under the command of Abishai the son of Zeruiah, Joab's brother, and one third under the command of Ittai the Gittite. And the king said to the men, "I myself will also go out with you."
He sent the troops out in three groups, placing one group under Joab, one under Joab’s brother Abishai son of Zeruiah, and one under Ittai, the man from Gath. The king told his troops, “I am going out with you.”

What does 2 Samuel 18:2 mean?

John Gill's Exposition of the Bible
2 Samuel 18:2

And David sent forth a third part of the people under the hand
of Joab
Very likely that which made the centre of the army, since Joab was the general of the army; though this distribution was made when David thought to have headed the army himself, and so made with respect to that:

and a third part under the hand of Abishai the son of Zeruiah, Joab's
brother;
who was next to Joab in the army, and fought with him against the Syrians and Ammonites, ( 2 Samuel 10:10 2 Samuel 10:11 ) ;

and a third part under the hand of Ittai the Gittite;
of whom see ( 2 Samuel 15:19 ) ; of these two parts consisted the right and left wings of the army:

and the king said unto the people;
the soldiers, and particularly the officers:

I will surely go forth with you myself also;
in which he seemed very resolute and peremptory; and this he proposed to do, not merely to animate the soldiers with his presence, and to show that he was willing to hazard his life with them, but chiefly for the sake of Absalom, to preserve his life, if possible.

California - Do Not Sell My Personal Information  California - CCPA Notice