לֹא־תִזְבַּח֩ לַיהוָ֨ה אֱלֹהֶ֜יךָ שׁ֣וֹר וָשֶׂ֗ה אֲשֶׁ֨ר יִהְיֶ֥ה בוֹ֙ מ֔וּם כֹּ֖ל דָּבָ֣ר רָ֑ע כִּ֧י תוֹעֲבַ֛ת יְהוָ֥ה אֱלֹהֶ֖יךָ הֽוּא׃ (ס)
Nie zarzynaj Wiekuistemu, Bogu twojemu, wołu albo owcy, któraby miała wadę, - jakąkolwiek ułomność: gdyż wstrętem to dla Wiekuistego, Boga twojego.
Derashot HaRan
The Torah proceeds with the injunction against planting a tree in the Temple mount (even without the intent of worshipping it), though there is nothing inherently wrong in this. Because the Emorites followed this practice in their houses of idol worship, however, we were commanded to keep away from their practices in order to keep away from them; for the imaginations of weak-minded men have a proclivity for false analogies, though there be great differences between the subjects of the analogies. It is for the very same reason that the Torah forbade sacrificial mounds (Deuteronomy 16:22), although they were beloved in the days of our forefathers, as Rashi writes in his commentary, because the Emorites were in the practice of using them for idol worship. Following this it is written (Ibid 17:1): "Do not sacrifice to the L-rd your G-d an ox or a sheep that has a blemish." The sequence needs explanation. Why does this exhortation follow that against idol worship? I have seen Rabbi Abraham [Ibn Ezra's] explanation here, but have found it inadequate.