أَخْبَرَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، قَالَ حَدَّثَنَا أَبُو دَاوُدَ، قَالَ حَدَّثَنَا شُعْبَةُ، عَنْ قَتَادَةَ، عَنْ أَنَسٍ، وَهِشَامٌ، عَنْ قَتَادَةَ، عَنْ أَنَسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَنَتَ شَهْرًا - قَالَ شُعْبَةُ لَعَنَ رِجَالاً وَقَالَ هِشَامٌ يَدْعُو عَلَى أَحْيَاءٍ مِنْ أَحْيَاءِ الْعَرَبِ - ثُمَّ تَرَكَهُ بَعْدَ الرُّكُوعِ ‏.‏ هَذَا قَوْلُ هِشَامٍ وَقَالَ شُعْبَةُ عَنْ قَتَادَةَ عَنْ أَنَسٍ أَنَّ النَّبِيَّ صلى الله عليه وسلم قَنَتَ شَهْرًا يَلْعَنُ رِعْلاً وَذَكْوَانَ وَلِحْيَانَ ‏.‏

It was narrated from Anas: "The Messenger of Allah (PBUH) said the Qunut for a month."- (One of the narrators) Shu'bah said: "He cursed some men." Hisham said: "He supplicated against some of the tribes of Arabs."-"Then he stopped doing that after bowing." This is what Hisham said. Shu'bah said, narrating from Qatadah, from Anas that the Prophet (PBUH) said the Qunut for a month, cursing Ri'l, Dhawkan and Lihyan. Translation Not Available

Book Ref: Sunan An Nisai Book 12 Hadith 1077
Web Ref:  Sunan An Nisai Vol 2 Book 12 Hadith 1078