From which book of the Bible is the following verse?

"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"