Anas bin Malik reported,

The Prophet ﷺ invoked curses for thirty mornings against those who had killed his companions at the Well of Maunah. He would invoke against Rial, Lihyan, and Usayyah, who had disobeyed Allah and His Messenger ﷺ.Anas said, "Allah revealed to His Prophet ﷺ concerning those who killed the companions at the Well of Maunah a passage of Quran that we used to recite until it was abrogated. It read, 'Convey to our people that we have met our Lord, and He is pleased with us and we are pleased with Him.'"

Bukhari 4095

Sahih

حدثنا يحيى بن بكير حدثنا مالك عن إسحاق بن عبد الله بن أبي طلحة

عن أنس بن مالك قال

دعا النبي ﷺ على الذين قتلوا يعني أصحابه ببئر معونة ثلاثين صباحا حين يدعو على رعل ولحيان وعصية عصت الله ورسوله ﷺ قال أنس فأنزل الله تعالى لنبيه ﷺ في الذين قتلوا أصحاب بئر معونة قرآنا قرأناه حتى نسخ بعد بلغوا قومنا فقد لقينا ربنا فرضي عنا ورضينا عنه

البخاري 4095صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Expedition of Raji, Ril, Zakwan, and Bir Maunah
Numbering
Darussalam 4095
Bukhari 4095