Muslims have to spend their energy trying to make the New Testament contradict within itself and use liberal scholarship like Bart Ehrman, James D. G. Dunn, Dale Martin, John Dominic Crossan, Christopher Tuckett, etc. – who are mostly warmed over classic liberalism of German higher criticism of the Tubingen school and classical liberals of the last 3 centuries – like F. C. Bauer, Walter Bauer, Schleiermacher, Rudolph Bultmann, Reimeus, Martin Kahler, etc.
Ehrman has a very shallow understanding of the Gospel according to Matthew.
In order to do the good works of Matthew 25, one has to first become a true sheep / a true disciple.
The whole book is about discipleship (Make disciples of all the nations (ta ethna / τα εθνη = all ethnic linguistic people groups – Matthew 28:19, which is a literary inclusio harkening back to 4:17-19 – repent, follow Me) and who are true disciples / sheep, who follow the true Shepherd Jesus.
The Magi (more than three, Gentiles, non-Jews, wise men out of the east – the Persian Empire at that time – probably some from Persians and other ethnic groups within Persian Empire – Arabs, Babylonians, Medes (Kurdish people of today come from the Medes), Assyrians, etc.), came to worship Jesus as the Messiah, the king of the Jews, the virgin born Messiah and Savior from sins (1:21 – you shall call His name Jesus, for it is He who will save His people from their sins”) and Immanuel, “God with us” (1:18-25) the true shepherd (2:1-12; see 2:6 – where Micah 5:2 is quoted that the Messiah is the Shepherd). Gentiles are being included as sheep. (The theme of Gentiles / non -Jews being included into the kingdom of God is a great theme of Matthew: 2:1-12; 4:13-15; 8:10-12; 10:18; 11:25-30; 12:15-21; 15:17-28 (opens the way for Gentile Canaanites (because she realized her sin and cried out for mercy and did not play self-pity, “I am a victim” games; rather she accepted Jesus as the Son of David, Lord (Kurios), the fulfillment of OT as Messiah-King), and also that they do not have to become Jews or obey Kosher food laws – harmonious with Mark 7:19-23; Galatians, Acts 15, etc.) ; 21:43; 24:14; 28:19)
To become a true sheep, there must be repentance and acceptance of Jesus for all He is. (Matthew 4:17-19; 11:25-30)
This includes His worthiness of worship (2:1-12; 14:33; 28:16) and His ransom / atonement (20:28 “ransom for many”, same as Mark 10:45); Matthew 26:28 “this is My blood of the covenant, which is poured out for many for the forgiveness of sins”; Matthew 26:31 – the quote from Zechariah 13:7 (“strike the Shepherd and the sheep will be scattered” in 26:31 shows that Jesus the Messiah is the fulfillment of that and the striking is the death blow of the crucifixion – the atonement –
so Matthew is fully harmonious with the apostle Paul writings and the gospel according to John and Hebrews and there is no contradiction whatsoever.
All who are burdened and heavy laden from all nations, are welcome to come to Jesus Al Masih.
Jesus reveals His truth to people from all nations, who are humble and confess their sins and weaknesses, and come to Him for help and salvation and learning in discipleship.
Matthew 11:27 is a deep verse about the Father and the Son – which points to the doctrine of the Trinity, as does Matthew 28:19.
“Come to Me all who are weary and heavy-laden, and I will give you rest . . . ”
“Take My yoke upon you . . . ” – be willing to start the discipleship process and be yoked / connected to Me from now on in a relationship of following Me.”