كتاب الجهاد والسير
32  
The Book of Jihad and Expeditions
(39)
Chapter: The persecution suffered by the prophet (saws) at the hands of the idolaters and hypocrites
(39)
باب مَا لَقِيَ النَّبِيُّ صلى الله عليه وسلم مِنْ أَذَى الْمُشْرِكِينَ وَالْمُنَافِقِينَ ‏‏
Sahih Muslim 1794 c

Abu Ishiq has narrated a similar tradition through a different chain of transmitters and has added:

He (the Messenger of Allah) loved to repeat the supplication thrice. He was saying: O Allah, it is for Thee to deal with the Quraish (repeating these words thrice). And among the Quraish, he mentioned (the names of) al-Walid b. 'Utba and Umayya b. Khalaf. (The narrator says there is no doubt about the names of these persons but he has forgotten the name of the seventh man).
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا جَعْفَرُ بْنُ عَوْنٍ، أَخْبَرَنَا سُفْيَانُ، عَنْ أَبِي، إِسْحَاقَ بِهَذَا الإِسْنَادِ نَحْوَهُ وَزَادَ وَكَانَ يَسْتَحِبُّ ثَلاَثًا يَقُولُ ‏ "‏ اللَّهُمَّ عَلَيْكَ بِقُرَيْشٍ اللَّهُمَّ عَلَيْكَ بِقُرَيْشٍ اللَّهُمَّ عَلَيْكَ بِقُرَيْشٍ ‏"‏ ‏.‏ ثَلاَثًا وَذَكَرَ فِيهِمُ الْوَلِيدَ بْنَ عُتْبَةَ وَأُمَيَّةَ بْنَ خَلَفٍ وَلَمْ يَشُكَّ ‏.‏ قَالَ أَبُو إِسْحَاقَ وَنَسِيتُ السَّابِعَ ‏.‏
Reference : Sahih Muslim 1794c
In-book reference : Book 32, Hadith 133
USC-MSA web (English) reference : Book 19, Hadith 4423
  (deprecated numbering scheme)