The Companions and Friday prayer in Sahih Muslim صحیح مسلم سے ثبوت کہ صحابہ کرام نے جمعہ کی نماز میں حضور کو کھڑے چھوڑ دیا اور آیت نازل ہوئی

 The Companions and Friday prayer in Sahih Muslim

This narration tells us that the companions were in mosque for Friday prayer, The Prophet(pbuh) was delivering sermon for Fridays prayer, when outside caravan came, everybody left the Prophet and rushed to caravan, only 12 people remained in mosque, the verse of Surah Jumma revealed about it.