Yusuf bin Mahak reported,

I was with Ayesha, Umm Muiminin رضي الله عنها, when an Iraqi man came to her and asked, "Which shroud is best?"She replied, "Goodness, what does it matter to you?"He said, "Umm Muiminin, show me your copy of the Quran."She asked, "Why?"He said, "So that I may arrange the Quran according to it, for it is recited without proper order."She said, "And what does it matter to you which part you recite first? What was first revealed of it was a surah from the Mufassal section, mentioning Paradise and the Fire. Then, when the people had turned to Islam, the rulings of the lawful and the unlawful were revealed. Had the first thing revealed been 'Do not drink wine,' they would have said, 'We will never give up wine.' And had it been revealed 'Do not commit fornication,' they would have said, 'We will never give up fornication.' Indeed, there was revealed in Mecca to Muhammad ﷺ, while I was a young Jariya at play, 'Rather, the Hour is their appointed time, and the Hour is more calamitous and more bitter' [Qamar 54:46]. And Surah al-Baqarah and Surah an-Nisa were revealed only while I was with him."He said, "So she brought out the Quran for him and dictated to him the verses of the surahs."

Bukhari 4993

Sahih

حدثنا إبراهيم بن موسى أخبرنا هشام بن يوسف أن ابن جريج أخبرهم قال وأخبرني

يوسف بن ماهك قال

إني عند عائشة أم المؤمنين رضي الله عنها إذ جاءها عراقي فقال أي الكفن خير قالت ويحك وما يضرك قال يا أم المؤمنين أريني مصحفك قالت لم قال لعلي أولف القرآن عليه فإنه يقرأ غير مؤلف قالت وما يضرك أيه قرأت قبل إنما نزل أول ما نزل منه سورة من المفصل فيها ذكر الجنة والنار حتى إذا ثاب الناس إلى الإسلام نزل الحلال والحرام ولو نزل أول شيء لا تشربوا الخمر لقالوا لا ندع الخمر أبدا ولو نزل لا تزنوا لقالوا لا ندع الزنا أبدا لقد نزل بمكة على محمد ﷺ وإني لجارية ألعب {بل الساعة موعدهم والساعة أدهى وأمر} وما نزلت سورة البقرة والنساء إلا وأنا عنده قال فأخرجت له المصحف فأملت عليه آي السور

البخاري 4993صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of the Quran
Chapter
Compilation of the Quran
Numbering
Darussalam 4993
Bukhari 4993