Then when he says, but that the gentiles, he shows that even the gentiles were accepted by Christ: first, he states his proposition; second, he confirms it with an authority, at as it is written.
First, therefore, he says: It has been stated that Christ accepted the Jews in order that the promises made to the patriarchs be fulfilled. But the promises were not made to the gentiles. Hence, this does not apply to the gentiles, because they were accepted on account of mercy. And this is what he says: but that the gentiles are to glorify God for his mercy extended to them by Christ; because, altho...ugh he did not preach to them in person, he sent them his disciples, who exercised their ministry among them as he had done among the Jews: go, therefore, and teach all nations (Matt 28:19); the earth is full of the Lord's mercy (Ps 33:5); his mercy is on those who fear him from generation to generation (Luke 1:50).
Thus, the Apostle attributes the conversion of the Jews to God's truth but that of the gentiles to his mercy. But a psalm says: all the ways of the Lord are mercy and truth (Ps 25:10), which seems to contradict this.
The answer is that in ascribing the call of the Jews to God's truth he does not exclude mercy, because the Apostle himself, who was born of the Jews, says: I received mercy (1 Tim 1:13). It was also an act of mercy that God made the promises to the patriarchs about the salvation of their descendants. Similarly, in ascribing the call of the gentiles to God's mercy he does not exclude God's truth entirely, because it also pertained to divine truth that he should fulfill his intention concerning the salvation of the gentiles. Of this intention the Apostle says in Ephesians: it was a mystery hidden for ages in God (Eph 3:9). But one form of truth, namely, the fulfillment of promises, is considered in the call of the Jews, that is not considered in the call of the gentiles, to whom the promises were not made.
Then when he says, as it is written, he confirms with an authority what he had said about the conversion of the gentiles. For although the call had not been promised to the gentiles, it was not unplanned but was foretold by the predictions of the prophets.
He adduces four authorities, the first of which contains Christ's thanksgiving to the Father for the conversion of the gentiles achieved by him. Hence he says: as it is written, (Ps 18:50), you made me the head of the gentiles; you exalted me above my adversaries. O God the Father, I, Christ, will praise you with thanksgiving among the gentiles, for the conversion of the gentiles accomplished through me and will sing with new exaltation of mind to your name, which has been manifested to them, as it says in John: I have manifested your name to the men whom you gave to me (John 17:6).
Or in another way: I will confess to you among the gentiles, i.e., I will make the gentiles confess to you with a confession of faith: let the peoples praise you, O God, let all the peoples praise you (Ps 67:5) and I will sing to your name, i.e., I will make the gentiles sing to you a song which consists in the exultation of a renewed spirit: O, sing to the Lord a new song; sing to the Lord, all the earth (Ps 96:1).
Source: Commentary on Romans