When Jesus came to the region of Caesarea Philippi, he asked his disciples, "Who do people say that the Son of Man is?"
"Well," they replied, "some say John the Baptist, some say Elijah, and others say Jeremiah or one of the other prophets."
Then he asked them, "Who do you say I am?"
Simon Peter answered, "You are the Messiah, the Son of the living God."
Jesus replied, "You are blessed, Simon son of John, because my Father in heaven has revealed this to you. You did not learn this from any human being.
References for Matthew 16:17
Now I say to you that you are Peter, and upon this rock I will build my church, and all the powers of hell will not conquer it.
References for Matthew 16:18
And I will give you the keys of the Kingdom of Heaven. Whatever you lock on earth will be locked in heaven, and whatever you open on earth will be opened in heaven."
Then he sternly warned them not to tell anyone that he was the Messiah.
From then on Jesus began to tell his disciples plainly that he had to go to Jerusalem, and he told them what would happen to him there. He would suffer at the hands of the leaders and the leading priests and the teachers of religious law. He would be killed, and he would be raised on the third day.
But Peter took him aside and corrected him. "Heaven forbid, Lord," he said. "This will never happen to you!"
Jesus turned to Peter and said, "Get away from me, Satan! You are a dangerous trap to me. You are seeing things merely from a human point of view, and not from God's."