2 Samuel 23:13

And three of the thirty chief went down, and came to David in the harvest time unto the cave of Adullam: and the troop of the Philistines pitched in the valley of Rephaim.

Cross-reference

2 Samuel 23:19 Historical context

2 Samuel 23:19 clarifies that Abishai was chief of the thirty but not among the three, distinguishing the three mentioned in verse 13 from the thirty.

1 Samuel 22:1 Historical context

1 Samuel 22:1 recounts David's first escape to the cave of Adullam, the same refuge where his mighty men later joined him.

1 Chronicles 11:15-19 gives the fuller parallel account of the same event — including the water fetching and David's refusal to drink.