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 4096

Narrated `Asim Al-Ahwal:

I asked Anas bin Malik regarding Al-Qunut during the prayer. Anas replied, "Yes (Al-Qunut was said by the Prophet (ﷺ) in the prayer)." I said, "Is it before Bowing or after Bowing?" Anas replied, "(It was said) before (Bowing)." I said, "So-and-so informed me that you told him that it was said after Bowing." Anas replied, "He was mistaken, for Allah's Messenger (ﷺ) said Al-Qunut after Bowing for one month. The Prophet (ﷺ) had sent some people called Al-Qurra who were seventy in number, to some pagan people who had concluded a peace treaty with Allah's Messenger (ﷺ) . But those who had concluded the treaty with Allah's Messenger (ﷺ) violated the treaty (and martyred all the seventy men). So Allah's Apostle said Al-Qunut after Bowing (in the prayer) for one month, invoking evil upon them.

حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا عَبْدُ الْوَاحِدِ، حَدَّثَنَا عَاصِمٌ الأَحْوَلُ، قَالَ سَأَلْتُ أَنَسَ بْنَ مَالِكٍ ـ رضى الله عنه ـ عَنِ الْقُنُوتِ، فِي الصَّلاَةِ فَقَالَ نَعَمْ‏.‏ فَقُلْتُ كَانَ قَبْلَ الرُّكُوعِ أَوْ بَعْدَهُ قَالَ قَبْلَهُ‏.‏ قُلْتُ فَإِنَّ فُلاَنًا أَخْبَرَنِي عَنْكَ أَنَّكَ قُلْتَ بَعْدَهُ، قَالَ كَذَبَ إِنَّمَا قَنَتَ رَسُولُ اللَّهِ صلى الله عليه وسلم بَعْدَ الرُّكُوعِ شَهْرًا، أَنَّهُ كَانَ بَعَثَ نَاسًا يُقَالُ لَهُمُ الْقُرَّاءُ، وَهُمْ سَبْعُونَ رَجُلاً إِلَى نَاسٍ مِنَ الْمُشْرِكِينَ، وَبَيْنَهُمْ وَبَيْنَ رَسُولِ اللَّهِ صلى الله عليه وسلم عَهْدٌ قِبَلَهُمْ، فَظَهَرَ هَؤُلاَءِ الَّذِينَ كَانَ بَيْنَهُمْ وَبَيْنَ رَسُولِ اللَّهِ صلى الله عليه وسلم عَهْدٌ، فَقَنَتَ رَسُولُ اللَّهِ صلى الله عليه وسلم بَعْدَ الرُّكُوعِ شَهْرًا يَدْعُو عَلَيْهِمْ‏.‏
Reference : Sahih al-Bukhari 4096
In-book reference : Book 64, Hadith 140
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 422
  (deprecated numbering scheme)