Language:
كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(28)
Chapter: The Ghazwa of Ar-Raji’, Ri’l, Dhakwan and Bi’r Ma’una and the narration about Khubaib and his companions
(28)
باب غَزْوَةُ الرَّجِيعِ وَرِعْلٍ وَذَكْوَانَ وَبِئْرِ مَعُونَةَ
Sahih al-Bukhari 4095

Narrated Anas bin Malik:

The Prophet (ﷺ) invoked evil upon those (people) who killed his companions at Bir Mauna for 30 days (in the morning prayer). He invoked evil upon (tribes of) Ril, Lihyan and Usaiya who disobeyed Allah and His Apostle. Allah revealed a Qur'anic Verse to His Prophet regarding those who had been killed, i.e. the Muslims killed at Bir Ma'una, and we recited the Verse till later it was cancelled. (The Verse was:) 'Inform our people that we have met our Lord, and He is pleased with us, and we are pleased with Him."

حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، حَدَّثَنَا مَالِكٌ، عَنْ إِسْحَاقَ بْنِ عَبْدِ اللَّهِ بْنِ أَبِي طَلْحَةَ، عَنْ أَنَسِ بْنِ مَالِكٍ، قَالَ دَعَا النَّبِيُّ صلى الله عليه وسلم عَلَى الَّذِينَ قَتَلُوا ـ يَعْنِي ـ أَصْحَابَهُ بِبِئْرِ مَعُونَةَ ثَلاَثِينَ صَبَاحًا حِينَ يَدْعُو عَلَى رِعْلٍ وَلِحْيَانَ وَعُصَيَّةَ عَصَتِ اللَّهَ وَرَسُولَهُ صلى الله عليه وسلم‏.‏ قَالَ أَنَسٌ فَأَنْزَلَ اللَّهُ تَعَالَى لِنَبِيِّهِ صلى الله عليه وسلم فِي الَّذِينَ قُتِلُوا أَصْحَابِ بِئْرِ مَعُونَةَ قُرْآنًا قَرَأْنَاهُ حَتَّى نُسِخَ بَعْدُ بَلِّغُوا قَوْمَنَا فَقَدْ لَقِينَا رَبَّنَا فَرَضِيَ عَنَّا وَرَضِينَا عَنْهُ‏.‏
Reference : Sahih al-Bukhari 4095
In-book reference : Book 64, Hadith 139
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 421
  (deprecated numbering scheme)