In John 10 Jesus says refers to himself as "the Good Shepherd" and says "anyone who does not enter the sheep pen by the gate but climbs in by some other way, is a thief and a robber. The one who enters by the gate is the shepherd of the sheep. The gatekeeper opens the gate for him, and the sheep listen to his voice. He calls his own sheep by name and leads them out."
Therefore Jesus said again, “Very truly I tell you, I am the gate for the sheep. All who have come before me are thieves and robbers, but the sheep have not listened to them. I am the gate; whoever enters through me will be saved. They will come in and go out, and find pasture. The thief comes only to steal and kill and destroy; I have come that they may have life, and have it to the full. “I am the good shepherd. The good shepherd lays down his life for the sheep. I know my sheep and my sheep know me"