1 Kings 22:33

And it came to pass, when the captains of the chariots perceived that it was not the king of Israel, that they turned back from pursuing him.

Cross-reference

1 Kings 22:31 Historical context

Verse 31 gives the command to target only the king of Israel, which explains why the commanders turned back here.

2 Chronicles 18:32 is the parallel account of this same event, confirming the chariot commanders turned back.