It is narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "No one preaches to the people except a ruler, or one who has been appointed (by the ruler), or else a show-off."
Hadith Referenceالمعجم الأوسط / باب الألف / 976
Hadith Takhrij«أخرجه الدارمي فى «مسنده» برقم: 2821، وابن ماجه فى «سننه» برقم: 3753، وأحمد فى «مسنده» برقم: 6772، 6830، والطبراني فى «الصغير» برقم: 601، والطبراني فى «الأوسط» برقم: 4384»