Peter panicked and did something foolish. Peter, having already walked on the water with Jesus, took his eyes from Jesus and focused on the peril in which he was surrounded. We tend to do the same thing.
As the fear and panic sets in remember what the LORD undertook to redeem you. Remember, He knew everything about you and still went to Calvary. He is interested in you. He is working with you to produce the fruits of the Spirit in you. You will produce a crop of love, joy, peace, longsuffering, gentleness, goodness, faith, meekness and temperance. You are His property. He has sealed you with His Spirit.
Panic is not he answer. Scripture tells us to rejoice in trials (temptations) and tribulations. GOD is in control.
Wherein ye greatly rejoice, though now for a season, if need be, ye are in heaviness through manifold temptations: That the trial of your faith, being much more precious than of gold that perisheth, though it be tried with fire, might be found unto praise and honour and glory at the appearing of Jesus Christ: 1 Peter 1:6-7
My brethren, count it all joy when ye fall into divers temptations; Knowing this, that the trying of your faith worketh patience. But let patience have her perfect work, that ye may be perfect and entire, wanting nothing. James 1:2-4
And not only so, but we glory in tribulations also: knowing that tribulation worketh patience; and patience, experience; and experience, hope: Romans 5:3-4
And we know that all things work together for good to them that love God, to them who are the called according to his purpose. Romans 8:28
To actually always believe these scriptures might be easy to say but very hard to do at times. So.how then do we endeavor to persevere? What did David do? He encouraged himself in the LORD his GOD. What in the world does that mean? How do you encourage yourself in the LORD your GOD? It might seem backward, but, look away from the problems and trials and focus on who GOD is, what He does and what He promises. Be encouraged that GOD loves you, cares about you and will never leave you. He is there. He knows what you are going through. Believe it.it is true.
Follow the example of David. David was greatly distressed by the circumstances but he concentrated on his GOD. Read what David thought about his GOD.
Bless the LORD, O my soul: and all that is within me, bless his holy name. Bless the LORD, O my soul, and forget not all his benefits: Who forgiveth all thine iniquities; who healeth all thy diseases; who redeemeth thy life from destruction; who crowneth thee with lovingkindness and tender mercies; Who satisfieth thy mouth with good things; so that thy youth is renewed like the eagle's. The LORD executeth righteousness and judgment for all that are oppressed. He made known his ways unto Moses, his acts unto the children of Israel. The LORD is merciful and gracious, slow to anger, and plenteous in mercy. He will not always chide: neither will he keep his anger forever. He hath not dealt with us after our sins; nor rewarded us according to our iniquities. For as the heaven is high above the earth, so great is his mercy toward them that fear him. As far as the east is from the west, so far hath he removed our transgressions from us. Like as a father pitieth his children, so the LORD pitieth them that fear him. For he knoweth our frame; he remembereth that we are dust. As for man, his days are as grass: as a flower of the field, so he flourisheth. For the wind passeth over it, and it is gone; and the place thereof shall know it no more. But the mercy of the LORD is from everlasting to everlasting upon them that fear him, and his righteousness unto children's children; To such as keep his covenant, and to those that remember his commandments to do them. The LORD hath prepared his throne in the heavens; and his kingdom ruleth over all. Bless the LORD, ye his angels, that excel in strength, that do his commandments, hearkening unto the voice of his word. Bless ye the LORD, all ye his hosts; ye ministers of his, that do his pleasure. Bless the LORD, all his works in all places of his dominion: bless the LORD, O my soul. Psalm 103