"I heard the Messenger of Allah (ﷺ) say: 'When any one of you visits some people,he should not lead them in prayer."'
Sunan an-Nasa'i Book 10, Hadith 11