Salim bin Abdullah (may Allah have mercy on him) narrates from his father (Sayyiduna Abdullah bin Umar (may Allah be pleased with them both)) that he heard the Prophet (peace and blessings be upon him), after raising his head from the bowing in the Fajr prayer, saying: "O Allah, curse so-and-so and so-and-so." He would say these words after saying 'Sami'a Allahu liman hamidah' (Allah hears the one who praises Him) and 'Rabbana wa laka al-hamd' (Our Lord, and to You belongs all praise). Then the Exalted Lord revealed this verse: "Not for you is anything of the matter." [Surah Al Imran: 128]
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3127