On the day of Badr, the Romans gained victory over the Persians, and this delighted the believers. So the verse was revealed, "Alif Lam Mim. The Romans have been defeated," up to His saying, "the believers will rejoice" [Rum 30:1–4]. He said, So the believers rejoiced at the victory of the Romans over the Persians.
حدثنا نصر بن علي الجهضمي حدثنا المعتمر بن سليمان عن أبيه عن سليمان الأعمش عن عطية
لما كان يوم بدر ظهرت الروم على فارس فأعجب ذلك المؤمنين فنزلت {الم غلبت الروم} إلى قوله {يفرح المؤمنون} قال ففرح المؤمنون بظهور الروم على فارس