And immediately he spoke to them etc. Here the assistance is presented. Because they were in darkness, he gives certainty; and he does three things. First, he reassures with words; second, Peter seeks a sign by deeds; third, it is granted to him. He had presented three things: the agitation of fear, the falsity of opinion, and despair; and against these three he acts, because immediately he spoke to them. Hence when someone cries out to the Lord, if there is need, he comes immediately; Isa. 30:19: at the voice of your cry, as soon as he hears, he will answer you. Likewise, because they were de...spairing, he says to them do not be afraid. The same is found in John 16:33: in the world you shall have tribulation, but take courage, for I have overcome the world: but in me you shall have peace. Likewise, because they believed it to be a phantom, he says to them it is I. And why does he speak thus? Because from his manner of speaking they could be assured; John 10:3: my sheep hear my voice. Likewise, to show himself to be the true God. A similar thing is found in Ex. 3:13: he who is, has sent me, Moses said. Likewise, against the fact that they were troubled, he said do not be afraid. Isa. 51:12: who are you that you should be afraid of a mortal man, and of the son of man, who withers like grass? And Prov. 28:1: but the just, bold as a lion, shall be without dread.
Source: Commentary on Matthew