He came to Muaz bin Jabal while he was leading a group in the Maghrib prayer. In this report it is said that the Messenger of Allah ﷺ said, "Muaz, do not be one who drives people away, for behind you pray the elderly, the weak, the one with a need, and the traveler."
حدثنا موسى بن إسمعيل حدثنا طالب بن حبيب حدثنا عبد الرحمن بن جابر يحدث
أنه أتى معاذ بن جبل وهو يصلي بقوم صلاة المغرب في هذا الخبر قال فقال رسول الله ﷺ يا معاذ لا تكن فتانا فإنه يصلي وراءك الكبير والضعيف وذو الحاجة والمسافر
No references are available.
[Its chain is daif] Bukhari also narrated it in Tarikh al-Kabir 3/110 from Musa bin Ismail through the same chain. Talib bin Habib was graded daif by Bukhari and by the majority of scholars.