Matthew 4:12
Now when Jesus had heard that John was cast into prison, he departed into Galilee;
Cross-reference
Matthew 11:2 shows John later in prison hearing about Jesus, continuing the narrative from Matthew 4:12.
Matthew 14:3 explains why John was imprisoned (Herod's action), giving background to Jesus' withdrawal in Matthew 4:12.
Mark 1:14 gives the identical timing — after John's arrest, Jesus preaches in Galilee — a direct parallel account.
Mark 6:17 explains why John was arrested — Herod's conflict over Herodias — providing the backstory to this verse.
Luke 3:20 also records John being shut in prison — confirming the event that prompts Jesus' withdrawal.
John 3:24 notes John was not yet imprisoned, clarifying that Matthew's event occurs later in the timeline.
Luke 4:14 describes Jesus returning to Galilee in the Spirit's power — the same movement here, though without mentioning John's arrest.
John 4:43 records Jesus leaving for Galilee after Samaria, matching Matthew's withdrawal but with different preceding events.