What is the meaning of Matthew 14:12-13?

12 And his disciples came, and took up the body, and buried it, and went and told Jesus. 13 When Jesus heard of it, he departed thence by ship into a desert place apart: and when the people had heard thereof, they followed him on foot out of the cities. (Matthew 14:12-13 KJV)

William Burkitt’s Commentary

The disciples of John hearing that their holy master was thus basely and barbarously murdered, took up his dead body and buried it.

Whence we learn, that the faithful servants of God are not ashamed of the suffering of the saints, but will testify their respect unto them both living and dead.

Observe farther, our blessed Saviour, upon the notice of John’s death, flies unto the desert for the preservation of his own life. Jesus knew that his hour was not yet come, and therefore he keeps out of Herod’s way. It is no cowardice to fly from persecutors, when Christ our captain both practices it himself, and directs us to it, saying, When they persecute you in one city, flee, &c.