Sahih al-Bukhari 3476
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
كِلاَكُمَا مُحْسِنٌ، وَلاَ تَخْتَلِفُوا، فَإِنَّ مَنْ كَانَ قَبْلَكُمُ اخْتَلَفُوا فَهَلَكُوا "
Narrated Ibn Mas`ud:
I heard a person reciting a (Qur'anic) Verse in a certain way, and I had heard the Prophet (ﷺ) reciting the same Verse in a different way. So I took him to the Prophet (ﷺ) and informed him of that but I noticed the sign of disapproval on his face, and then he said, "Both of you are correct, so don't differ, for the nations before you differed, so they were destroyed."
Full reference and source
Sahih al-Bukhari 3476 In-book : Book 60, Hadith 143 USC-MSA web (English) : Vol. 4, Book 55, Hadith 682 (deprecated)
View source on Sunnah.com (opens in a new tab)