Muaz bin Jabal used to pray with the Prophet ﷺ, then he would come to his own people and lead them in prayer. On one occasion he recited Baqarah with them. A man cut his prayer short and prayed briefly, and when this reached Muaz he said, "He is a hypocrite."Word of this reached the man, so he went to the Prophet ﷺ and said, "Messenger of Allah, we are a people who work with our hands and draw water with our camels. Muaz led us in prayer last night and recited Baqarah, so I shortened my prayer, and he claimed that I am a hypocrite."The Prophet ﷺ said, "Muaz, are you driving people away?" He said it three times. "Recite 'By the sun and its brightness' [Shams 91:1] and 'Glorify the name of your Lord, the Most High' [Ala 87:1] and the like of them."
أن معاذ بن جبل كان يصلي مع النبي ﷺ، ثم يأتي قومه فيصلي بهم الصلاة، فقرأ بهم البقرة، قال: فتجوز رجل، فصلى صلاة خفيفة، فبلغ ذلك معاذا، فقال: إنه منافق، فبلغ ذلك الرجل، فأتى النبي ﷺ، فقال: يا رسول الله، إنا قوم نعمل بأيدينا، ونسقي بنواضحنا، وإن معاذا صلى بنا البارحة، فقرأ البقرة، فتجوزت، فزعم أني منافق. فقال النبي ﷺ: يا معاذ أفتان أنت-ثلاثا- اقرأ {والشمس وضعها}، و{سبح اسم ربك الأعلى} ونحوها.
Bukhari narrated it in Adab (6106) and Muslim in Salah (465), both through Amr bin Dinar, who said, Jabir bin Abdullah narrated to us, and he related it. The wording given is Bukhari's, and Muslim's wording is similar.