The Prophet ﷺ said, "There are three whom Allah loves.A man who comes to a people and asks them for help by Allah, not by any kinship between himself and them, and they refuse him. Then one of them stays behind and follows him secretly, giving him something privately, so that none knows of his gift except Allah, the Mighty and Majestic, and the one who gave it.And a people who travel through the night until, when sleep becomes dearer to them than anything that could be matched against it, they dismount and lay down their heads, but one of them rises and devotes himself to me with humble entreaty and recites my verses.And a man who is in a military expedition and they meet the enemy and are routed, but he turns his chest forward until he is killed or victory is granted to him."
عن النبي ﷺ قال: ثلاثة يحبهم الله عز وجل: رجل أتى قوما فسألهم بالله، ولم يسألهم بقرابة بينه وبينهم، فمنعوه فتخلفهم رجل بأعقابهم فأعطاه سرا، لا يعلم بعطيته إلا الله عزوجل، والذي أعطاه. وقوم ساروا ليلتهم، حتى إذا كان النوم أحب إليهم مما يعدل به نزلوا فوضعوا رؤوسهم، فقام يتملقني، ويتلو آياتي. ورجل كان في سرية فلقوا العدو، فانهزموا، فأقبل بصدره حتى يقتل، أو يفتح له.
Nasai (1615) and Tirmidhi (2568) both narrated it from Muhammad bin Muthanna, who said, Muhammad bin Jafar narrated to us, who said, Shubah narrated to us, from Mansur bin Mutamir, who said, I heard Rabi bin Harash narrating from Zayd bin Dhubyan, who traced it back to Abu Dharr, and he mentioned the hadith. Zayd bin Dhubyan is "acceptable," and he has been corroborated. The discussion of this is set out in detail in Qiyam al-Layl.