The Messenger of Allah ﷺ said, "Abu Dharr, lift your gaze and look at the most distinguished man you can see in the mosque."I looked, and there was a man seated wearing a fine garment. I said, "This one."He said, "Abu Dharr, lift your gaze and look at the lowliest man you can see in the mosque."I looked, and there was a frail man dressed in worn rags. I said, "This one."The Messenger of Allah ﷺ then said, "By the One in whose hand is my soul, this man is better in the sight of Allah on the Day of Resurrection than an earthful of the likes of that other one."
قال رسول الله ﷺ: يا أبا ذر، ارفع بصرك فانظر أرفع رجل تراه في المسجد قال: فنظرت، فإذا رجل جالس عليه حلة، قال: فقلت: هذا. قال: فقال: يا أبا ذر، ارفع بصرك فانظر أوضع رجل تراه في المسجد قال: فنظرت، فإذا رجل ضعيف عليه أخلاق، قال: فقلت: هذا. قال: فقال رسول الله ﷺ: والذي نفسي بيده، لهذا أفضل عند الله يوم القيامة من قراب الأرض مثل هذا.
Ahmad (21493) reported it, and this is his wording, as did Ibn Abu Shayba in Musannaf (35457) and Hannad bin Sari in Zuhd (815), all of them via Abu Muawiya, who said, Amash reported to us, from Zayd bin Wahb, from Abu Dharr, and he related it. Its isnad is sahih.