The Prophet ﷺ said: "There are three whom Allah (SWT) loves: A man who comes to some people and asks (to be given something) for the sake of Allah and not for the sake of their relationship, but they do not give him, so a man stayed behind and gave it to him in secret, and no one knew of his giving except Allah (SWT) and the one to whom he gave it. People who travel all night until sleep becomes dearer to them than anything equated with it, so they lay down their heads (and slept), then a man among them got up and started praying to Me and beseeching Me, reciting My Verses. And a man who was on a campaign and met the enemy and they fled, but he went forward (pursuing them) until he was killed or victory was granted." (Using translation from Nasāʾī 1615)
عَنِ النَّبِيِّ ﷺ قَالَ ثَلَاثَةٌ يُحِبُّهُمُ اللَّهُ وَثَلَاثَةٌ يُبْغِضُهُمُ اللَّهُ أَمَّا الثَّلَاثَةُ الَّذِينَ يُحِبُّهُمُ اللَّهُ فَرَجُلٌ أَتَى قَوْمًا فَسَأَلَهُمْ بِاللَّهِ وَلَمْ يَسْأَلُهُمْ بِقَرَابَةٍ بَيْنَهُمْ وَبَيْنَهُ فَتَخَلَّفَ رَجُلٌ مِنْ أَعْقَابِهِمْ فَأَعْطَاهُ سِرًّا لَا يَعْلَمُ بِعَطِيَّتِهِ إِلَّا اللَّهُ وَالَّذِي أَعْطَاهُ وَقَوْمٌ سَارُوا لَيْلَتَهُمْ حَتَّى إِذَا كَانَ النَّوْمُ أَحَبَّ إِلَيْهِمْ مِمَّا يَعْدِلُ بِهِ فَنَزَلُوا فَوَضَعُوا رُءُوسَهُمْ فَقَامَ رَجُلٌ يَتَمَلَّقُنِي وَيَتْلُو آيَاتِي وَرَجُلٌ كَانَ فِي سَرِيَّةٍ فَلَقِيَ الْعَدُوَّ فَهُزِمُوا فَأَقْبَلَ بِصَدْرِهِ حَتَّى يُقْتَلَ أَوْ يُفْتَحَ لَهُ وَالثَّلَاثَةُ الَّذِينَ يُبْغِضُهُمُ اللَّهُ الشَّيْخُ الزَّانِي وَالْفَقِيرُ الْمُخْتَالُ وَالْغَنِيُّ الظَّلُومُ