22 And Peter taking him, began to rebuke him, saying: Lord, be it far from thee, this shall not be unto thee.
23 Who turning, said to Peter: Go behind me, Satan, thou art a scandal unto me: because thou savourest not the things that are of God, but the things that are of men.
scandal 1(n) 1b conduct that causes or encourages a lapse of faith or of religious obedience in another
Jesus compared Peter to Satan because like Satan in the desert, Peter was tempting Jesus with the easy way out. In this context he was calling Peter a tempter and was correcting him and his attitude. At this point neither Peter nor any of the other apostles understood what Jesus' mission was and what He had to do. Only after His resurrection and the help of the Hold Spirit did they understand. The commission Peter was given to lead was never taken away.