The verse: "So eat of (meats) on which Allah's name hath been pronounced" and the verse: "Eat not of (meats) on which Allah's name hath not been pronounced" were abrogated, meaning an exception was made therein by the verse: "The food of the people of the Book is lawful unto you and yours is lawful unto them." (Using translation from Abū Dāʾūd 2817)
{فَكُلُوا مِمَّا ذُكِرَ اسْمُ اللهِ عَلَيْهِ} [الأنعام 118] {وَلَا تَأْكُلُوا مِمَّا لَمْ يُذْكَرِ اسْمُ اللهِ عَلَيْهِ} [الأنعام 121] فَنَسَخَ وَاسْتَثْنَى مِنْ ذَلِكَ فَقَالَ {وَطَعَامُ الَّذِينَ أُوتُوا الْكِتَابَ حِلٌّ لَكُمْ وَطَعَامُكُمْ حِلٌّ لَهُمْ} [المائدة 5]