Ahithophel was the king's counselor. Hushai the Archite was the king's friend.
Cross References
2 Samuel 15:12While Absalom was offering the sacrifices, he sent for Ahithophel the Gilonite, David's counselor, to come from his hometown of Giloh. So the conspiracy gained strength, and Absalom's following kept increasing.
2 Samuel 15:32When David came to the summit, where he used to worship God, Hushai the Archite was there to meet him with his robe torn and dust on his head.
2 Samuel 15:37So David's friend Hushai arrived in Jerusalem just as Absalom was entering the city.
1 Chronicles 27:32David's uncle Jonathan was a counselor; he was a man of insight and a scribe. Jehiel son of Hachmoni attended to the sons of the king.
Treasury of Scripture
And Ahithophel was the king's counselor: and Hushai the Archite was the king's companion:
Ahithophel
2 Samuel 15:12
And Absalom sent for Ahithophel the Gilonite, David's counseller, from his city, even from Giloh, while he offered sacrifices. And the conspiracy was strong; for the people increased continually with Absalom.
2 Samuel 16:23
And the counsel of Ahithophel, which he counselled in those days, was as if a man had inquired at the oracle of God: so was all the counsel of Ahithophel both with David and with Absalom.
2 Samuel 17:23
And when Ahithophel saw that his counsel was not followed, he saddled his ass, and arose, and gat him home to his house, to his city, and put his household in order, and hanged himself, and died, and was buried in the sepulchre of his father.
Hushai
2 Samuel 15:32,37
And it came to pass, that when David was come to the top of the mount, where he worshipped God, behold, Hushai the Archite came to meet him with his coat rent, and earth upon his head: …
2 Samuel 16:16
And it came to pass, when Hushai the Archite, David's friend, was come unto Absalom, that Hushai said unto Absalom, God save the king, God save the king.
companion
2 Samuel 16:17
And Absalom said to Hushai, Is this thy kindness to thy friend? why wentest thou not with thy friend?
Psalm 55:13
But it was thou, a man mine equal, my guide, and mine acquaintance.
Zechariah 13:7
Awake, O sword, against my shepherd, and against the man that is my fellow, saith the LORD of hosts: smite the shepherd, and the sheep shall be scattered: and I will turn mine hand upon the little ones.