Not for you (O Muḥammad pbuh, but for Allah) is the decision.. (V.3:128)

Hadith Number 4559

setting

Narrated Salim's father

That he heard Allah's Messenger (ﷺ) on raising his head from the bowing in the last rak`a in the Fajr prayer, saying, "O Allah, curse such-and-such person and such-and-such person, and such-and-such person," after saying, "Allah hears him who sends his praises to Him, O our Lord, all praise is for you." So Allah revealed:--"Not for you (O Muhammad) (but for Allah) is the decision, verily they are indeed wrongdoers." (3.128)

Hadith Number 4560

setting

Narrated Abu Huraira

Whenever Allah's Messenger (ﷺ) intended to invoke evil upon somebody or invoke good upon somebody, he used to invoke (Allah after bowing (in the prayer). Sometimes after saying, "Allah hears him who sends his praises to Him, all praise is for You, O our Lord," he would say, "O Allah. Save Al-Walid bin Al-Walid and Salama bin Hisham, and `Aiyash bin Abu Rabi`a. O Allah! Inflict Your Severe Torture on Mudar (tribe) and strike them with (famine) years like the years of Joseph." The Prophet (ﷺ) used to say in a loud voice, and he also used to say in some of his Fajr prayers, "O Allah! Curse soand- so and so-and-so." naming some of the Arab tribes till Allah revealed:--"Not for you (O Muhammad) (but for Allah) is the decision." (3.128)