There's more than one:
Isaiah (chs. 30-31) criticizes the Israelian and Judean rulers of his time for trying to ally with Egypt against Assyria, and predicts that these efforts will end in failure.
Hosea, a contemporary of Isaiah, also criticizes them for vacillating between Assyria and Egypt (7:11 and 12:2).
Jeremiah (about a century later, when Assyria ...