Abu Hurairah (May Allah bepleased with him) reported:
Messenger of Allah (ﷺ) said, "When one of you leads the Salat, he should not prolong it because the congregation includes those who are feeble, ill or old". One version adds: "those who have to attend to work") While offering prayers alone, you may pray as long as you like".[Al-Bukhari and Muslim].
Arabic/English book reference: Book 1, Hadith 228