Kitaab An-Nikaah, Saheeh Bukhaari Vol: 7; Hadith Number:5065
Chapter: The Statement of the Prophet (ﷺ):
‘Whoever is able to marry, should marry, for that will help him lower his gaze and guard his modesty (i.e. his private parts from committing illegal sexual intercourse etc.).’ And should a person marry (even if) he has no desire for marriage?
Narrated ‘Alqamah: while I was with Abdullaah, uthman met him at Mina and said, ‘O Abu Abdur-Rahmaan! I have something to say to you.’ So both of them went aside and uthmaan said, ‘O Abu Abdur-Rahmaan! Shall we marry you to a virgin who will make you remember your past days? When Abdullaah felt that he was not in need of that, he beckoned me (to join him) saying, ‘O Alqamah’ Then I heard him saying (in reply to uthmaan), ‘As you have said that, (I tell you that) the Prophet (ﷺ) once said to us, ‘O young people! Whoever among you is able to marry, should marry, and whoever is not able to marry, is recommended to observe fast as fasting will diminish his sexual power’.
Shaikh Abdul Azeez Bin Baaz (رحمه الله) stated:
Therefore, to get marriage is the correct (thing to do) as a complete obligation upon the one who has shahwa (sexual desires) even if he is not in fear of falling to Zinaa. This is with regards to the one whose situation allows him to get married. And in this is a (manifestation) of Uthman’s righteous moral conduct. It (shows) that the elderly person can get married as long as he has the strength for sexual relations. And the main address (in this hadith) is directed at the young people because in most cases they possess stronger desires and are more in need of that (i.e. fulfilment of such desires).