Negative commandment · Lo Ta’aseh #100 of 613
Not to bring the fee of a prostitute or the price of a dog
שלא להקריב אתנן ומחיר
The verse · Devarim 23:19
לֹא־תָבִיא אֶתְנַן זוֹנָה וּמְחִיר כֶּלֶב בֵּית ה׳ אֱלֹהֶיךָ לְכׇל־נֶדֶר כִּי תוֹעֲבַת ה׳ אֱלֹהֶיךָ גַּם־שְׁנֵיהֶם
“Thou shalt not bring the hire of a prostitute, or the price of a dog, into the house of the Lord thy God for any vow: for both these are abomination to the Lord thy God.”
The Rambam’s words
Not to offer as a sacrifice an animal received by a prostitute as her fee, or an animal received in exchange for a dog, as [Deuteronomy 23:19] states: "Do not bring a prostitute's fee or the price of a dog...."
שלא להקריב אתנן ומחיר, שנאמר "לא תביא אתנן זונה ומחיר כלב" (דברים כג,יט).
Why · Sefer HaChinuch #571
Not to bring the fee of a prostitute or the price of a dog
“From the roots of the commandment are what you will see at the end of my words. However, I am afraid of drawing close to the Dwelling of G-d, as I know that “anyone who comes close, who comes close” that has not sufficiently sanctified himself “will not see the House and live.””
Who & when
“And this prohibition is practiced by males and females during the time of the [Temple].”
Where in the Mishneh Torah
Hilchot Things Forbidden on the Altar הלכות איסורי המזבח