Abdullah bin Umar reported,

The Messenger of Allah ﷺ said on the day of Uhud, "O Allah, curse Abu Sufyan. O Allah, curse Harith bin Hisham. O Allah, curse Safwan bin Umaya."Then the verse was revealed, "Not for you is the decision in any way, whether He turns to them in mercy or punishes them" [Aal Imran 3:128].So Allah turned to them in mercy, and they embraced Islam, and their Islam became excellent.

Tirmidhi 3004

Sahih

حدثنا أبو السائب سلم بن جنادة بن سلم الكوفي حدثنا أحمد بن بشير عن عمر بن حمزة

عن سالم بن عبد الله بن عمر عن أبيه قال

قال رسول الله ﷺ يوم أحد اللهم العن أبا سفيان اللهم العن الحارث بن هشام اللهم العن صفوان بن أمية قال فنزلت {ليس لك من الأمر شيء أو يتوب عليهم أو يعذبهم} فتاب الله عليهم فأسلموا فحسن إسلامهم

الترمذي 3004صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tafsir of the Quran
Chapter
From Surah Al Imran
Numbering
Darussalam 3004
Tirmidhi 3004