Abdullah bin Abbas reported,

He narrated to him that the Messenger of Allah ﷺ said, "Jibreel عليه السلام recited the Quran to me in one mode, but I asked him for more, and I kept asking him to increase it until he reached seven modes."Ibn Shihab said, "It has reached me that these seven modes pertain only to matters that are essentially one and do not differ regarding what is lawful or unlawful."

Muslim 1902

Sahih

و حدثني حرملة بن يحيى أخبرنا ابن وهب أخبرني يونس عن ابن شهاب حدثني عبيد الله بن عبد الله بن عتبة أن

ابن عباس

حدثه أن رسول الله ﷺ قال أقرأني جبريل عليه السلام على حرف فراجعته فلم أزل أستزيده فيزيدني حتى انتهى إلى سبعة أحرف قال ابن شهاب بلغني أن تلك السبعة الأحرف إنما هي في الأمر الذي يكون واحدا لا يختلف في حلال ولا حرام

مسلم 1902صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues of the Quran and what relates to it
Chapter
Clarification that the Quran was revealed in seven modes and clarification of its meaning
Numbering
Darussalam 1902
Muslim 1902