Did Peter literally walk on water by his own faith or did Christ Jesus make that miracle happen?
Matthew 14:29 NET
So he said, "Come." Peter got out of the boat, walked on the water, and came toward Jesus.
It was Peter's faith in Jesus that gave him the ability to walk on water as long as Peter believed that Jesus as the son of God could have him walk on water; he had that ability through his faith, but when he began in his mind to think, 'does Jesus really have that power to make me walk on water?' he began to sink.
Mat 14:30 and 31 KJV
one of the things we have to remember is that as long as Satan remains unchained he will use everything at his disposal to interfere with our faith in Christ. Satan can and often does slip things into our minds when we are unsuspecting.
Here are some examples of how Satan works:
1st Chronicles 21:1 KJV
Mark 4:15 KJV
Luke 22:3 KJV
Luke 22:31 KJV
Acts 5:3 KJV