It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) supplicated: 'Allahumma innaka adhaqta awa'ila Quraysh nakalan fa-adhiq akhirahum nawalan' (O Allah, You made the first ones of Quraysh taste exemplary punishment; now make the later ones of them taste Your bounty and favour).
Related hadith on this topic