It is narrated from Sahl bin Sa’d Al-Sa’idi (may Allah be pleased with him) that the Messenger of Allah (ﷺ) went to reconcile between the Banu Amr bin Awf. The time for prayer came, and the muezzin said to Abu Bakr (may Allah be pleased with him): “Will you lead the people in prayer, and should I pronounce the iqamah?” Abu Bakr (may Allah be pleased with him) said: “Yes.” So Abu Bakr (may Allah be pleased with him) began the prayer. Meanwhile, the Messenger of Allah (ﷺ) arrived while the people were praying. He (ﷺ) passed through the people until he reached the first row. The people started clapping their hands. Abu Bakr (may Allah be pleased with him) would not pay attention to anything during the prayer, but when the people began to clap repeatedly, Abu Bakr (may Allah be pleased with him) turned and saw the Messenger of Allah (ﷺ). The Prophet (ﷺ) signaled to him to remain in his place (and lead the prayer). Abu Bakr (may Allah be pleased with him) raised his hands and praised Allah for the honor that the Messenger of Allah (ﷺ) had granted him to lead the prayer, then Abu Bakr (may Allah be pleased with him) stepped back, and the Messenger of Allah (ﷺ) moved forward and led the prayer. When the prayer was finished, he said: “O Abu Bakr! When I instructed you, why did you not remain in your place?” Abu Bakr (may Allah be pleased with him) replied: “It was not befitting for the son of Abu Quhafah to lead the prayer in front of the Messenger of Allah (ﷺ).” Then the Messenger of Allah (ﷺ) said: “It is strange that I saw you all clapping so much. If anyone encounters an issue during the prayer, he should say ‘Subhan Allah,’ for when he says ‘Subhan Allah,’ attention will be paid to him. And clapping is for women.”
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 319
Hadith Takhrijاخرجه البخارى: الأذان، باب من دخل ليؤم الناس فجاء الامام الأول فتأخر الأول اولم يتأخر جازت صلوة: 684 - ومسلم، الصلاة، باب تقديم الجماعة من يصلى بهم اذا تأخر الامام .... الخ: 421