The Messenger of Allah ﷺ said, "My allies on the Day of Resurrection are the God-fearing, even if another's lineage is closer than theirs. Let people not come to me with mere deeds while you come bearing the world on your shoulders, saying, 'Muhammad!' For I will say like this and like this, 'No,'" and he turned away to either side.
أن رسول الله ﷺ قال: إن أوليائي يوم القيامة المتقون، وإن كان نسب أقرب من نسب، فلا يأتيني الناس بالأعمال، وتأتون بالدنيا تحملونها على رقابكم، فتقولون: يا محمد! فأقول هكذا وهكذا: لا وأعرض في كلا عطفيه.
No references are available.
Bukhari reported it in Adab al-Mufrad (897) from Abdul-Aziz bin Abdullah, who said, "Abdul-Aziz bin Muhammad narrated to us, from Muhammad bin Amr, from Abu Salama, from Abu Hurairah," and he related it.Its chain is hasan because of Abdul-Aziz bin Muhammad, who is Darawardi, and his teacher Muhammad bin Amr bin Alqama Laythi, both of whom produce hasan hadiths.