The Quran talk about it in
24:33 where prostitute are forgiven if they are forced into prostitution and In the
4:24 where Allah allows women to be married temporarly in exchange of money, like a prostitute
And [also prohibited to you are all] married women except those your right hands possess. [This is] the decree of Allah upon you. And lawful to you are [all others] beyond these, [provided] that you seek them [in marriage] with [gifts from] your property, desiring chastity, not unlawful sexual intercourse. So for whatever you enjoy [of marriage] from them, give them their due compensation as an obligation. And there is no blame upon you for what you mutually agree to beyond the obligation. Indeed, Allah is ever Knowing and Wise. - Quran An-Nisa(The Women) 4:24 (islam)
But let them who find not [the means for] marriage abstain [from sexual relations] until Allah 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 Allah 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, Allah is [to them], after their compulsion, Forgiving and Merciful. - Quran An-Nur(The Light) 24:33 (islam)
Bible Ezekiel 16:17 (en) Prostitution (5) You made for yourself male idols and engaged in prostitution with them.
Thou hast also taken thy fair jewels of my gold and of my silver, which I had given thee, and madest to thyself images of men, and didst commit whoredom with them, - Bible Ezekiel 16:17 (bible)
Bible Ezekiel 23:18-21 (en) Prostitution (5) She lusted after her lovers, whose genitals were like of donkeys
[18]So she discovered her whoredoms, and discovered her nakedness: then my mind was alienated from her, like as my mind was alienated from her sister.
[19]Yet she multiplied her whoredoms, in calling to remembrance the days of her youth, wherein she had played the harlot in the land of Egypt.
[20]For she doted upon their paramours, whose flesh is as the flesh of asses, and whose issue is like the issue of horses.
[21]Thus thou calledst to remembrance the lewdness of thy youth, in bruising thy teats by the Egyptians for the paps of thy youth. - Bible Ezekiel 23:18-21 (bible)
[15]When Judah saw her, he thought her to be an harlot; because she had covered her face.
[16]And he turned unto her by the way, and said, Go to, I pray thee, let me come in unto thee; (for he knew not that she was his daughter in law.) And she said, What wilt thou give me, that thou mayest come in unto me?
[17]And he said, I will send thee a kid from the flock. And she said, Wilt thou give me a pledge, till thou send it?
[18]And he said, What pledge shall I give thee? And she said, Thy signet, and thy bracelets, and thy staff that is in thine hand. And he gave it her, and came in unto her, and she conceived by him. - Bible Genesis 38:15-18 (bible torah)