סימן קעז סעיף יד
אִם יֵש לַגּוֹי שֻׁתָּפוּת עִם יִשְֹרָאֵל בִּבְהֵמָה, וְכֵן הַמְקַבֵּל בְּהֵמָה מִן הַגּוֹי לְגַדְּלָה וְשֶׁיַחְלְקו בִּוְלָדוֹת, פְּטוּרִין מִן הַבְּכוֹרָה, שֶׁנֶּאֱמַר, פֶּטֶר כָּל רֶחֶם בִּבְנֵי יִשְֹרָאֵל, עַד שֶׁיִהְיֶה הַכֹּל מִיִשְֹרָאֵל. וְגוֹי הַמְקַבֵּל בְּהֵמָה מִיִשְֹרָאֵל לְגַדְלָה וְשֶׁיַחְלְקוּ בִּוְלָדוֹת, לְהַרְבֵּה פוֹסְקִים לָא מַהֲנֵי. אֶלָּא צָרִיךְ הַיִשְֹרָאֵל לִמְכֹּר אֶת הָאֵם לַגּוֹי.
If a Gentile and a Jew are partners in an animal, or a Jew agrees to raise an animal of a Gentile, and share equally in the offspring, they are exempt from the laws of the firstborn for it is said: "Whatever opens the womb among the Children of Yisrael,"7Exodus 13:2. meaning, all of it must belong to a Jew. If a Gentile agrees to raise an animal of a Jew, and share equally in the offspring, according to many Poskim it is of no avail, but the Jew must sell the mother to the Gentile.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)