Ayesha reported,

The Messenger of Allah ﷺ ordered Abu Bakr to lead the people in prayer during his illness, so Abu Bakr would lead them.Urwa said that the Messenger of Allah ﷺ felt some relief, so he came out and found Abu Bakr leading the people in prayer. When Abu Bakr saw him, he stepped back, but the Messenger of Allah ﷺ gestured to him to remain as he was. The Messenger of Allah ﷺ then sat beside Abu Bakr, level with him. Abu Bakr followed the prayer of the Messenger of Allah ﷺ, and the people followed the prayer of Abu Bakr.

Muslim 943

Sahih

حدثنا أبو بكر بن أبي شيبة وأبو كريب قالا حدثنا ابن نمير عن هشام ح و حدثنا ابن نمير وألفاظهم متقاربة قال حدثنا أبي قال حدثنا هشام عن أبيه

عن عائشة قالت

أمر رسول الله ﷺ أبا بكر أن يصلي بالناس في مرضه فكان يصلي بهم قال عروة فوجد رسول الله ﷺ من نفسه خفة فخرج وإذا أبو بكر يؤم الناس فلما رآه أبو بكر استأخر فأشار إليه رسول الله ﷺ أي كما أنت فجلس رسول الله ﷺ حذاء أبي بكر إلى جنبه فكان أبو بكر يصلي بصلاة رسول الله ﷺ والناس يصلون بصلاة أبي بكر

مسلم 943صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
Appointing a deputy by the imam when he has an excuse such as illness, travel, or other reasons to lead the people in prayer, and that whoever prays behind an imam who is sitting due to inability to stand must stand if he is able, and the abrogation of sitting behind a sitting imam for those capable of standing
Numbering
Darussalam 943
Muslim 943