Qatada reported,

Anas bin Malik reported رضي الله عنه regarding the verse "Indeed, We have granted you a clear victory" [Fath 48:1] that it refers to Hudaybiya.His companions said, "How pleasant and wholesome this is for you. But what is there for us?"So Allah revealed, "That He may admit the believing men and believing women into gardens beneath which rivers flow" [Fath 48:5].Shuba said, "I went to Kufa and related all of this on the authority of Qatada. Then I returned and mentioned it to him, and he said, 'As for "Indeed, We have granted you" [Fath 48:1], that is from Anas. But as for "How pleasant and wholesome," that is from Ikrima.'"

Bukhari 4172

Sahih

حدثني أحمد بن إسحاق حدثنا عثمان بن عمر أخبرنا شعبة

عن قتادة

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

البخاري 4172صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Expedition of Hudaybiya
Numbering
Darussalam 4172
Bukhari 4172