3 But now there was read in the Gospel, how the Lord Jesus Christ in the wilderness was being tempted of the devil. Christ entirely was tempted of the devil. For in Christ you were being tempted, because Christ of you had for Himself flesh, of Himself for you salvation; of you for Himself death, of Himself for you life; of you for Himself revilings, of Himself for you honours; therefore of you for Himself temptation, of Himself for you victory. If in Him tempted we have been, in Him we overcome the devil....“On the Rock You have exalted me.”
Now therefore here we perceive who is crying from the ends of the earth. Let us call to mind the Gospel: “Upon this Rock I will build My Church.” Therefore She cries from the ends of the earth, whom He has willed to be built upon a Rock. But in order that the Church might be built upon the Rock, who was made the Rock? Hear Paul saying: “But the Rock was Christ.” On Him therefore built we have been. For this reason that Rock whereon we have been built, first has been smitten with winds, flood, rain, when Christ of the devil was being tempted. Behold on what firmness He has willed to establish you. With reason our voice is not in vain, but is hearkened unto: for on great hope we have been set: “On the Rock You have exalted me.”...
Source: The Enarrations, or Expositions, on the Psalms (New Advent)