Sunan an-Nasa'i, Book 25, Hadith 36 (In-Book)

It was narrated from Abu Hurairah that the Prophet said: "There are three, all of whom have a promise of help from Allah: 'The Mujahid who strives in the cause of Allah, the Mighty and Sublime; the man who gets married, seeking to keep himself chaste; and the slave who has a contract of manumission and wants to buy his freedom.'"

أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ يَزِيدَ، عَنْ أَبِيهِ، قَالَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ الْمُبَارَكِ، عَنْ مُحَمَّدِ بْنِ عَجْلاَنَ، عَنْ سَعِيدٍ الْمَقْبُرِيِّ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ ثَلاَثَةٌ كُلُّهُمْ حَقٌّ عَلَى اللَّهِ عَزَّ وَجَلَّ عَوْنُهُ الْمُجَاهِدُ فِي سَبِيلِ اللَّهِ وَالنَّاكِحُ الَّذِي يُرِيدُ الْعَفَافَ وَالْمُكَاتَبُ الَّذِي يُرِيدُ الأَدَاءَ ‏" ‏ ‏.‏

sunnah.com