A prayer he made, and then was told to stop
He named individuals in the prayer after rising from the bow, until a verse came down.
اللَّهُمَّ الْعَنْ فُلاَنًا وَفُلاَنًا وَفُلاَنًا
He would say, after raising his head from bowing: O Allah, curse so-and-so and so-and-so. Then Allah revealed: it is not for you to decide the matter, or to turn to them in mercy, or to punish them, for they are wrongdoers.
Even he ﷺ was corrected for praying against named people. The outcome was not his to allocate.
The full narration
Narrated Salim's father:That he heard Allah's Messenger (ﷺ), when raising his head from bowing of the first rak`a of the morning prayer, saying, "O Allah! Curse so-and-so and so-and-so" after he had said, "Allah hears him who sends his praises to Him. Our Lord, all the Praises are for you!" So Allah revealed:-- "Not for you (O Muhammad! )......(till the end of Verse) they are indeed wrong-doers
Source
Ṣaḥīḥ al-Bukhārī · 4069
- Agreed upon as authentic (al-Bukhārī / Muslim)