The Messenger of Allah ﷺ said, "No one should preach to the people except a ruler, one appointed by a ruler, or one seeking to show off."
حدثنا هشام بن عمار حدثنا الهقل بن زياد حدثنا الأوزاعي عن عبد الله بن عامر الأسلمي
أن رسول الله ﷺ قال لا يقص على الناس إلا أمير أو مأمور أو مراء
[Hasan] Ahmad reported it, 2/183, and Darimi, from the hadith of Abdullah bin Amir, and Abdul-Rahman bin Harmala corroborated him, in Ahmad, 2/178. The hadith has many corroborating narrations in Abu Dawud, no. 3665, and Ahmad and others.