Matthew 10:5 KJV - Matthew 15:24 KJV -
That was before the cross, when they were sent during Jesus' ministry. After the resurrection, it changed, obviously, or Jesus would not have told them to go into all the nations to preach the Gospel. Peter said specifically, that the Lord sent him to the Gentiles in Acts 15.
John 17
20
Neither pray I for these alone, but for them also which shall believe on me through their word; 21 that they all may be one; as thou, Father, art in me, and I in thee, that they also may be one in us:
that the world may believe that thou hast sent me. 22 And the glory which thou gavest me I have given them; that they may be one, even as we are one: 23 I in them, and thou in me, that they may be made perfect in one;
and that the world may know that thou hast sent me, and hast loved them, as thou hast loved me.
John 11
47 Then gathered the chief priests and the Pharisees a council, and said, What do we? for this man doeth many miracles. 48 If we let him thus alone, all men will believe on him: and the Romans shall come and take away both our place and nation. 49 And one of them, named Caiaphas, being the high priest that same year, said unto them, Ye know nothing at all, 50 nor consider that it is expedient for us, that one man should die for the people, and that the whole nation perish not. 51 And this spake he not of himself: but being high priest that year,
he prophesied that Jesus should die for that nation; 52 And not for that nation only, but that also he should gather together in one the children of God that were scattered abroad.
Peter went to Samaria.
Acts 8
14 Now when the apostles which were at Jerusalem heard that Samaria had received the word of God, they sent unto them Peter and John: 15 who, when they were come down, prayed for them, that they might receive the Holy Ghost: 16 (for as yet he was fallen upon none of them: only they were baptized in the name of the Lord Jesus.) 17 Then laid they their hands on them, and they received the Holy Ghost.
Peter went to Joppa to minister to the Gentiles.
Acts 9
36 Now there was at Joppa a certain disciple named Tabitha, which by interpretation is called Dorcas: this woman was full of good works and almsdeeds which she did. 37 And it came to pass in those days, that she was sick, and died: whom when they had washed, they laid her in an upper chamber. 38 And forasmuch as Lydda was nigh to Joppa, and the disciples had heard that Peter was there, they sent unto him two men, desiring him that he would not delay to come to them. 39 Then Peter arose and went with them. When he was come, they brought him into the upper chamber: and all the widows stood by him weeping, and shewing the coats and garments which Dorcas made, while she was with them. 40 But Peter put them all forth, and kneeled down, and prayed; and turning him to the body said, Tabitha, arise. And she opened her eyes: and when she saw Peter, she sat up. 41 And he gave her his hand, and lifted her up, and when he had called the saints and widows, presented her alive. 42 And it was known throughout all Joppa; and many believed in the Lord. 43 And it came to pass, that he tarried many days in Joppa with one Simon a tanner.
Acts 10 - Peter was called by God to go the Gentile, Cornelius to preach the Gospel.
Peter is called out because he went to the Gentiles in Acts 11, but then convinces his Jewish brethren that God sent him to the Gentiles.
In Acts 15, Peter declares that God has sent him to the Gentiles.
Peter writes his letter to all the strangers in surrounding countries. The Jews were never called strangers. The term "stranger" referred to the Gentiles.
Peter, an apostle of Jesus Christ, to the strangers scattered throughout Pontus, Galatia, Cappadocia, Asia, and Bithynia, elect according to the foreknowledge of God the Father, through sanctification of the Spirit, unto obedience and sprinkling of the blood of Jesus Christ: Grace unto you, and peace, be multiplied. Blessed be the God and Father of our Lord Jesus Christ, which according to his abundant mercy hath begotten us again unto a lively hope by the resurrection of Jesus Christ from the dead, ...
John states that the Gospel is for the whole world
1 John 2:2
and he is the propitiation for our sins: and not for ours only, but also for the sins of the whole world.
1 John 4:14
And we have seen and do testify that the Father sent the Son to be the Saviour of the world.