An-Nur 24:33
وَلْيَسْتَعْفِفِ ٱلَّذِينَ لَا يَجِدُونَ نِكَاحًا حَتَّىٰ يُغْنِيَهُمُ ٱللَّهُ مِن فَضْلِهِۦ ۗ وَٱلَّذِينَ يَبْتَغُونَ ٱلْكِتَـٰبَ مِمَّا مَلَكَتْ أَيْمَـٰنُكُمْ فَكَاتِبُوهُمْ إِنْ عَلِمْتُمْ فِيهِمْ خَيْرًا ۖ وَءَاتُوهُم مِّن مَّالِ ٱللَّهِ ٱلَّذِىٓ ءَاتَىٰكُمْ ۚ وَلَا تُكْرِهُوا۟ فَتَيَـٰتِكُمْ عَلَى ٱلْبِغَآءِ إِنْ أَرَدْنَ تَحَصُّنًا لِّتَبْتَغُوا۟ عَرَضَ ٱلْحَيَوٰةِ ٱلدُّنْيَا ۚ وَمَن يُكْرِههُّنَّ فَإِنَّ ٱللَّهَ مِنۢ بَعْدِ إِكْرَٰهِهِنَّ غَفُورٌ رَّحِيمٌ
WalyastaAAfifi allatheena layajidoona nikahan hatta yughniyahumu Allahumin fadlihi wallatheena yabtaghoona alkitabamimma malakat aymanukum fakatiboohum inAAalimtum feehim khayran waatoohum min mali Allahiallathee atakum wala tukrihoo fatayatikumAAala albigha-i in aradna tahassunanlitabtaghoo AAarada alhayati addunyawaman yukrihhunna fa-inna Allaha min baAAdi ikrahihinnaghafoorun raheem
But let them who find not [the means for] marriage abstain [from sexual relations] until Allāh enriches them from His bounty. And those who seek a contract [for eventual emancipation] from among whom your right hands possess - then make a contract with them if you know there is within them goodness and give them from the wealth of Allāh which He has given you. And do not compel your slave girls to prostitution, if they desire chastity, to seek [thereby] the temporary interests of worldly life. And if someone should compel them, then indeed, Allāh is [to them], after their compulsion, Forgiving and Merciful.
And those who cannot afford marriage should keep themselves chaste until Allah enriches them out of His grace. And those of your slaves who wish to enter the contract of Kitābah (emancipation by paying money), contract Kitābah with them, if you recognize some good in them. And give them out of the wealth of Allah that He has given to you. And do not compel your maids to prostitution - if they wish to observe chastity - in order that you may seek the temporary benefit of the worldly life. If one compels them, then after their being compelled, Allah is Most-Forgiving, Very-Merciful.