Thenceforth he intended to lead them in prayer, but they forbade him and informed him of the prohibition of the Messenger of Allah (ﷺ). He mentioned it to the Messenger of Allah (ﷺ) who said to him: Yes.
The narrator said: I think he (the Prophet) said: You did harm to Allah and His Apostle.
In-book : Book 2, Hadith 91
English translation : Book 2, Hadith 482