Sunan an-Nasa'i, Volume 3, Book 23, Hadith 2571 (DarusSalam) ⓘ
It was narrated from Zaid bin Zibyan, and attributed to Abu Dharr, that the Prophet said: "There are three whom Allah, the Mighty and Sublime, loves, and three whom Allah, the Mighty and Sublime, hates. As for those whom Allah, the Mighty and Sublime, loves: A man who comes to some people and asks (to be given something) for the sake of Allah, the Mighty and Sublime, and not for the sake of their relationship, but they do not give him. So one man stayed behind and gave to him in secret, and no one knew of his giving except Allah, the Mighty and Sublime, and the one to whom he gave it. People who travel all night until sleep becomes dearer to them than anything that may be equivalent to 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 Ayat. 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 Allah, the Mighty and Sublime, granted victory to him. And three whom Allah hates are the old man who commits Zina, the poor man who shows off, and the rich man who is unjust."
أَخْبَرَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، قَالَ حَدَّثَنَا مُحَمَّدٌ، قَالَ حَدَّثَنَا شُعْبَةُ، عَنْ مَنْصُورٍ، قَالَ سَمِعْتُ رِبْعِيًّا، يُحَدِّثُ عَنْ زَيْدِ بْنِ ظَبْيَانَ، رَفَعَهُ إِلَى أَبِي ذَرٍّ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " ثَلاَثَةٌ يُحِبُّهُمُ اللَّهُ عَزَّ وَجَلَّ وَثَلاَثَةٌ يُبْغِضُهُمُ اللَّهُ عَزَّ وَجَلَّ أَمَّا الَّذِينَ يُحِبُّهُمُ اللَّهُ عَزَّ وَجَلَّ فَرَجُلٌ أَتَى قَوْمًا فَسَأَلَهُمْ بِاللَّهِ عَزَّ وَجَلَّ وَلَمْ يَسْأَلْهُمْ بِقَرَابَةٍ بَيْنَهُ وَبَيْنَهُمْ فَمَنَعُوهُ فَتَخَلَّفَهُ رَجُلٌ بِأَعْقَابِهِمْ فَأَعْطَاهُ سِرًّا لاَ يَعْلَمُ بِعَطِيَّتِهِ إِلاَّ اللَّهُ عَزَّ وَجَلَّ وَالَّذِي أَعْطَاهُ وَقَوْمٌ سَارُوا لَيْلَتَهُمْ حَتَّى إِذَا كَانَ النَّوْمُ أَحَبَّ إِلَيْهِمْ مِمَّا يُعْدَلُ بِهِ نَزَلُوا فَوَضَعُوا رُءُوسَهُمْ فَقَامَ يَتَمَلَّقُنِي وَيَتْلُو آيَاتِي وَرَجُلٌ كَانَ فِي سَرِيَّةٍ فَلَقُوا الْعَدُوَّ فَهُزِمُوا فَأَقْبَلَ بِصَدْرِهِ حَتَّى يُقْتَلَ أَوْ يَفْتَحَ اللَّهُ لَهُ وَالثَّلاَثَةُ الَّذِينَ يُبْغِضُهُمُ اللَّهُ عَزَّ وَجَلَّ الشَّيْخُ الزَّانِي وَالْفَقِيرُ الْمُخْتَالُ وَالْغَنِيُّ الظَّلُومُ " .
also referenced under: Hadith 2570 (Reference) & Book 23, Hadith 0 (In-Book)