The Prophet ﷺ said, "There are three whom Allah loves.A man who came to a people and asked them for help in the name of Allah, not by virtue of any kinship between himself and them, but they refused him. Then one man hung back behind them and gave to him in secret, so that no one knew of his gift except Allah
and the one who gave it.And a people who travelled through the night until, when sleep had become dearer to them than anything they could be offered for it, they dismounted and laid down their heads, but one of them rose to entreat Me lovingly and recite My verses.And a man who was in a military expedition who met the enemy, and his companions were routed, but he advanced with his chest forward until he was killed or victory was 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, tracing it back to Abu Dharr, and he related the hadith. Zayd bin Dhubyan is "acceptable" and has been corroborated. The discussion of this is detailed in Qiyam al-Layl.