What is the meaning of Acts 27:20-26?

20 And when neither sun nor stars in many days appeared, and no small tempest lay on us, all hope that we should be saved was then taken away. 21 But after long abstinence Paul stood forth in the midst of them, and said, Sirs, ye should have hearkened unto me, and not have loosed from Crete, and to have gained this harm and loss. 22 And now I exhort you to be of good cheer: for there shall be no loss of any man’s life among you, but of the ship. 23 For there stood by me this night the angel of God, whose I am, and whom I serve, 24 Saying, Fear not, Paul; thou must be brought before Caesar: and, lo, God hath given thee all them that sail with thee. 25 Wherefore, sirs, be of good cheer: for I believe God, that it shall be even as it was told me. 26 Howbeit we must be cast upon a certain island. (Acts 27:20-26 KJV)

William Burkitt’s Commentary

Observe here, 1. The hopeless, helpless, comfortless state, which St. Paul and those in the ship with him were now reduced to: neither sun nor stars appeared, and the weather proved very tempestuous, and when they utterly despaired of life, then God gives Paul, and he the rest, a comfortable assurance that nothing should be lost, but the vessel only.

Oh, how does God delight to deliver those that are forsaken of their hopes; what a present help he is to the helpless: He reserves his holy hand for a deadlift! Our extremities are the seasons of his succour.

Observe, 2. The great and special favour which God indulged the holy apostle, even to send an angel to him to comfort him:  The angel of God, whose I am, and whom I serve, said, Fear not.

O what an encouragement is it to us to enter upon, and be faithful in, the service of God, when he causes his holy angels, upon all occasions, to serve us! When visible dangers are before us, God has invisible servants round about us, both to succour and secure us. Lord, help me in sincerity to say,  Thine I am, and thee I serve! Let me be found faithful in all the instances of my duty to thee, and then shall I find (as the apostle here) that safety evermore accompanies duty.

Observe, 3. How God was pleased for St. Paul’s sake to save all who were with him in the ship; sinners are spared and saved for the saints’ sake, whom yet they hate and seek to destroy. The wicked are oft-times delivered from temporal destruction for the sake of the godly who live among them, and intercede with God for them; there were two hundred threescore and sixteen persons, all heathens, except three or four, saved for St. Paul’s sake, who no doubt begged God for their lives.

Lord, what fools and madmen are the wicked, who seek the destruction of those for whose sake it is that they are not themselves destroyed! The breaches which wicked men make by sinning, they make up by praying.

Observe, 4. How steady and steadfast the apostle was in the faith and belief of God’s promise and providence for his own and the company’s preservation:  I believe God, that it shall be even as it was told me.

We honour God exceedingly, when we depend on his promise, rely on his power, believe his word, though what he says be very improbable and unlikely to come to pass.