There are several references in the Synoptic Gospels (the gospels of Mark, Matthew and Luke) to Jesus predicting his own death, the first two occasions building up to the final prediction of his crucifixion. Matthew's Gospel adds a prediction, before he and his disciples enter Jerusalem, that he will be crucified there.
In the Gospel of Mark, generally agreed to be the earliest Gospel, written around the year 70, Jesus predicts his death three times. Walter Schmithals, noting that this Gospel also contains verses in which Jesus appears to predict his Passion, suggests that these represent the earlier traditions available to the author, and the three death predictions are redactional creations of the author. The setting for the first prediction is somewhere near Caesarea Philippi, immediately after Peter proclaims Jesus as the Messiah. Jesus tells his followers that "the Son of Man must suffer many things and be rejected by the elders, chief priests and teachers of the law, and that he must be killed and after three days rise again". When Peter objects, Jesus tells him: "Get behind me, Satan! You do not have in mind the things of God, but the things of men". (Mark 8:31–33)
The Gospel of Matthew 16:21–28 includes this episode, saying that Jesus "from that time", i.e. on a number of occasions, Jesus "began to show his disciples that he must go to Jerusalem and suffer many things from the elders and chief priests and scribes, and be killed ...".
The Gospel of Luke 9:22–27 shortens the account, dropping the dialogue between Jesus and Peter.