2 Samuel 10:1-8

1 After this the king of the Ammonites died, and Hanun his son reigned in his stead.
2 And David said, "I will deal loyally with Hanun the son of Nahash, as his father dealt loyally with me." So David sent by his servants to console him concerning his father. And David's servants came into the land of the Ammonites.
3 But the princes of the Ammonites said to Hanun their lord, "Do you think, because David has sent comforters to you, that he is honoring your father? Has not David sent his servants to you to search the city, and to spy it out, and to overthrow it?"
4 So Hanun took David's servants, and shaved off half the beard of each, and cut off their garments in the middle, at their hips, and sent them away.
5 When it was told David, he sent to meet them, for the men were greatly ashamed. And the king said, "Remain at Jericho until your beards have grown, and then return."
6 When the Ammonites saw that they had become odious to David, the Ammonites sent and hired the Syrians of Beth-re'hob, and the Syrians of Zobah, twenty thousand foot soldiers, and the king of Ma'acah with a thousand men, and the men of Tob, twelve thousand men.
7 And when David heard of it, he sent Jo'ab and all the host of the mighty men.
8 And the Ammonites came out and drew up in battle array at the entrance of the gate; and the Syrians of Zobah and of Rehob, and the men of Tob and Ma'acah, were by themselves in the open country.