Abu Hurairah reported,

The Messenger of Allah ﷺ said, "When one of you leads people in prayer, let him keep it brief, for among them are the weak, the sick, and the elderly. But when one of you prays alone, let him prolong it as he wishes."

Azami 2260

Sahih

عن أبي هريرة

أن رسول الله ﷺ قال: إذا صلى أحدكم بالناس فليخفف، فإن فيهم الضعيف والسقيم والكبير، وإذا صلى أحدكم لنفسه فليطول ما شاء.

الأعظمي 2260صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Leadership
Section
Commanding the imams to shorten the prayer
Numbering
Jami al-Kamil 2260 (2nd edition)