The subject of abrogation is disputed between scholars since long time.
The key passages concerning abrogation are
2:106
We never nullify a verse, nor cause it to be forgotten, unless We bring one better than it, or similar to it. Do you not know that God is capable of all things?
6:34
Other messengers before you were rejected, but they endured rejection and persecution until Our help came to them. There can be no change to God’s words. News of the Messengers has already reached you.
There is more than one question on this site explaining how and why many scholars defend the concept of abgrogation.
There are however also many scholars who do not accept the concept of abrogation in the sense that a later verse of the Quran (or even a Hadith) may invalidate an earlier verse (or earlier revelation) as being in conflict with the concept of the Word of God being unchanging and pre-existing.
What explanation patterns are genarally suggested to replace the concept of abrogation in case of a conflict?