It is narrated from Sayyida Aisha (may Allah be pleased with her) that the Noble Prophet (peace and blessings be upon him) said: "Marry off righteous men and women." Imam Darimi (may Allah have mercy on him) said: In this hadith, the following part was omitted by me: Whatever comes to them afterwards is good.
Brief Explanation
(Commentary on Hadith 2217)
Most likely, this hadith is in support of the noble verse: «﴿وَأَنْكِحُوا الْأَيَامَى مِنْكُمْ وَالصَّالِحِينَ مِنْ عِبَادِكُمْ وَإِمَائِكُمْ﴾ [النور : 32]».
The meaning of this verse is: "Marry off those among you who are single, and also the righteous among your male and female slaves."
In this verse, encouragement to perform marriage (nikah) has been given.