Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:6394al-Ḥasan b. al-Rabīʿ > Abū al-Aḥwaṣ > ʿĀṣim > Anas

The Prophet ﷺ sent a Sariya (an army detachment) consisting of men called Al-Qurra', and all of them were martyred. I had never seen the Prophet ﷺ so sad over anything as he was over them. So he said Qunut (invocation in the prayer) for one month in the Fajr prayer, invoking for Allah's wrath upon the tribe of 'Usaiya, and he used to say, "The people of 'Usaiya have disobeyed Allah and His Apostle."  

البخاري:٦٣٩٤حَدَّثَنَا الْحَسَنُ بْنُ الرَّبِيعِ حَدَّثَنَا أَبُو الأَحْوَصِ عَنْ عَاصِمٍ عَنْ أَنَسٍ ؓ قَالَ

بَعَثَ النَّبِيُّ ﷺ سَرِيَّةً يُقَالُ لَهُمُ الْقُرَّاءُ فَأُصِيبُوا فَمَا رَأَيْتُ النَّبِيَّ ﷺ وَجَدَ عَلَى شَىْءٍ مَا وَجَدَ عَلَيْهِمْ فَقَنَتَ شَهْرًا فِي صَلاَةِ الْفَجْرِ وَيَقُولُ إِنَّ عُصَيَّةَ عَصَوُا اللَّهَ وَرَسُولَهُ