The Prophet ﷺ said, "There are three whom Allah loves and three whom Allah detests.As for those whom Allah loves, the first is a man who comes to a people and asks them in the name of Allah, not on the basis of any kinship between him and them. They refuse him, but one man hangs back behind them and gives him in secret, with none knowing of his gift except Allah and the one to whom he gave.The second are a people who travel through the night until, when sleep has become more beloved to them than anything that could be given in exchange for it, they dismount and lay down their heads. Then one of them rises to entreat Me and recite My verses.The third is a man who is in a military expedition and meets the enemy. His companions are routed, but he turns his chest toward the enemy until he is killed or victory is granted to him.As for the three whom Allah detests, they are the elderly fornicator, the arrogant pauper, and the oppressive rich man."
عن النبي ﷺ قال: ثلاثة يحبهم الله، وثلاثة يبغضهم الله فأما الذين يحبهم الله: فرجل أتى قوما فسألهم بالله ولم يسألهم بقرابة بينه وبينهم فمتعوه فتخلف رجل بأعقابهم فأعطاه سرا لا يعلم بعطيته إلا الله والذي أعطاه، وقوم ساروا ليلتهم حتى إذا كان النوم أحب إليهم مما يعدل به نزلوا فوضعوا رءوسهم فقام أحدهم يتملقني ويتلو آياتي، ورجل كان في سرية فلقي العدو فهزموا وأقبل بصدره حتى يقتل أو يفتح له. والثلاثة الذين يبغضهم الله: الشيخ الزاني، والفقير المختال، والغني الظلوم.
Narrated by Tirmidhi (2570) and Nasai (2570), both from the hadith of Muhammad bin Jafar, who said, Shuba narrated to us, from Mansur bin Mutamir, who said, I heard Rubai bin Harrash narrate from Zayd bin Dhubyan, tracing it up to Abu Dharr, and he mentioned it. The wording given is that of Tirmidhi, who said, This is a hadith sahih. Ibn Khuzayma (2456) and Ibn Hibban (3349) also graded it sahih, both through this same route, and Imam Ahmad (21355) also narrated it through this route. Hakim (2/113) narrated it through another route from Shuba and graded it sahih.I say, in the chain is Zayd bin Dhubyan, from whom no one narrated except Rubai bin Harrash, and no one deemed him reliable except Ibn Hibban, who mentioned him in Thiqat, and he and his teacher Ibn Khuzayma both cited him in their respective Sahihs. For this reason Hafiz said of him, "Acceptable," meaning that his narration is sound when corroborated, and it has indeed been corroborated.Imam Ahmad (21530) narrated it through another route, from Mutarrif bin Abdullah bin Shikhir, who said, "News reached me of a hadith from Abu Dharr, and I longed to meet him. So I met him and said to him, 'O Abu Dharr, news of a hadith from you has reached me, and I wanted to meet you so I could ask you about it.' He said, 'You have indeed met me, so ask.'" So he asked him, and Abu Dharr mentioned some of this hadith and added some other parts to it. Its chain of transmission is sahih.See further citations of sources in Qiyam al-Layl.