Right then, Jesus made the disciples get into the boat and go ahead to the other side of the lake while he dismissed the crowds.
References for Matthew 14:22
When he sent them away, he went up onto a mountain by himself to pray. Evening came and he was alone.
Meanwhile, the boat, fighting a strong headwind, was being battered by the waves and was already far away from land.
Very early in the morning he came to his disciples, walking on the lake.
When the disciples saw him walking on the lake, they were terrified and said, "It's a ghost!" They were so frightened they screamed.
Just then Jesus spoke to them, "Be encouraged! It's me. Don't be afraid."
Peter replied, "Lord, if it's you, order me to come to you on the water."
And Jesus said, "Come." Then Peter got out of the boat and was walking on the water toward Jesus.
But when Peter saw the strong wind, he became frightened. As he began to sink, he shouted, "Lord, rescue me!"
Jesus immediately reached out and grabbed him, saying, "You man of weak faith! Why did you begin to have doubts?"
When they got into the boat, the wind settled down.
Then those in the boat worshipped Jesus and said, "You must be God's Son!"