Language:
كتاب الجزية والموادعة
58  
Jizyah and Mawaada'ah
(8)
Chapter: The invocation of the Imam against those who break their covenant (with the Muslims)
(8)
باب دُعَاءِ الإِمَامِ عَلَى مَنْ نَكَثَ عَهْدًا
Sahih al-Bukhari 3170

Narrated `Asim:

I asked Anas about the Qunut (i.e. invocation in the prayer). Anas said, "It should be recited before bowing." I said, "So-and-so claims that you say that it should be recited after bowing." He replied, "He is mistaken." Then Anas narrated to us that the Prophet (ﷺ) invoked evil on the tribe of Bani-Sulaim for one month after bowing. ' Anas Further said, "The Prophet (ﷺ) had sent 40 or 70 Qaris (i.e. men well versed in the knowledge of the Qur'an) to some pagans, but the latter struggled with them and martyred them, although there was a peace pact between them and the Prophet (ﷺ) I had never seen the Prophet so sorry and worried about anybody as he was about them (i.e. the Qaris).

حَدَّثَنَا أَبُو النُّعْمَانِ، حَدَّثَنَا ثَابِتُ بْنُ يَزِيدَ، حَدَّثَنَا عَاصِمٌ، قَالَ سَأَلْتُ أَنَسًا ـ رضى الله عنه ـ عَنِ الْقُنُوتِ‏.‏ قَالَ قَبْلَ الرُّكُوعِ‏.‏ فَقُلْتُ إِنَّ فُلاَنًا يَزْعُمُ أَنَّكَ قُلْتَ بَعْدَ الرُّكُوعِ، فَقَالَ كَذَبَ‏.‏ ثُمَّ حَدَّثَنَا عَنِ النَّبِيِّ صلى الله عليه وسلم أَنَّهُ قَنَتَ شَهْرًا بَعْدَ الرُّكُوعِ يَدْعُو عَلَى أَحْيَاءٍ مِنْ بَنِي سُلَيْمٍ ـ قَالَ ـ بَعَثَ أَرْبَعِينَ أَوْ سَبْعِينَ ـ يَشُكُّ فِيهِ ـ مِنَ الْقُرَّاءِ إِلَى أُنَاسٍ مِنَ الْمُشْرِكِينَ، فَعَرَضَ لَهُمْ هَؤُلاَءِ فَقَتَلُوهُمْ، وَكَانَ بَيْنَهُمْ وَبَيْنَ النَّبِيِّ صلى الله عليه وسلم عَهْدٌ، فَمَا رَأَيْتُهُ وَجَدَ عَلَى أَحَدٍ مَا وَجَدَ عَلَيْهِمْ‏.‏
Reference : Sahih al-Bukhari 3170
In-book reference : Book 58, Hadith 12
USC-MSA web (English) reference : Vol. 4, Book 53, Hadith 395
  (deprecated numbering scheme)