When the Messenger of Allah ﷺ sent him to Yemen, the Messenger of Allah ﷺ went out with him to give him final counsel. Muaz was riding while the Messenger of Allah ﷺ walked beneath his mount.When he finished, he said, "Muaz, perhaps you will not meet me again after this year of mine. Perhaps you will pass by this mosque of mine and my grave."Muaz bin Jabal wept, overcome with grief at parting from the Messenger of Allah ﷺ. Then the Messenger of Allah ﷺ turned and faced toward Madinah and said, "The closest of people to me are the God-fearing, whoever they may be and wherever they may be."
لما بعثه رسول الله ﷺ إلى اليمن خرج معه رسول الله ﷺ يوصيه ومعاذ راكب ورسول الله ﷺ يمشي تحت راحلته، فلما فرغ قال: يا معاذ: إنك عسى أن لا تلقاني بعد عامي هذا، ولعلك أن تمر بمسجدي هذا وقبري فبكى معاذ بن جبل جشعا لفراق رسول الله ﷺ ثم التفت فأقبل بوجهه نحو المدينة فقال: إن أولى الناس بي المتقون من كانوا وحيث كانوا.
Ahmad narrated it (22052, 22054), as did Tabarani (20/121) and Ibn Hibban (647), all of them through Safwan bin Amr, from Rashid bin Saad, from Asim bin Humayd Sakuni, from Muaz bin Jabal, who related it. Its isnad is hasan because of Asim bin Humayd Sakuni, for his hadith is hasan.