Abdullah bin Abbas reported,

The Quran was sent down all at once to the lowest heaven on Laylat al-Qadr, and after that it was sent down over twenty years. "And they do not come to you with an example but that We bring you the truth and the best explanation" [Furqan 25:33], "And it is a Quran which We have separated by intervals that you might recite it to the people over a prolonged period. And We have sent it down progressively" [Isra 17:106].

Azami 668

Sahih

عن ابن عباس قال

أنزل القرآن جملة واحدة إلى السماء الدنيا في ليلة القدر، أنزل بعد ذلك عشرين سنة: {ولا يأتونك بمثل إلا جئناك بالحق وأحسن تفسيرا} [سورة الفرقان: ٣٣]، {وقرآنا فرقناه لتقرأه على الناس على مكث ونزلناه تنزيلا} [سورة الإسراء: ١٠٦].

الأعظمي 668صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the scriptures sent down from Allah عز وجل
Section
Duration of the revelation of the Quran to the Prophet ﷺ
Numbering
Jami al-Kamil 668 (2nd edition)
Azami 668