Bechoros2: 3
כֹּל שֶׁקָּדַם הֶקְדֵּשָׁן אֶת מוּמָן, אוֹ מוּם עוֹבֵר לְהֶקְדֵּשָׁן, וּלְאַחַר מִכָּאן נוֹלָד לָהֶם מוּם קָבוּעַ, וְנִפְדּוּ — פְּטוּרִין מִן הַבְּכוֹרָה, וּמִן הַמַּתָּנוֹת, וְאֵינָן יוֹצְאִין לְחֻלִּין לִגָּזֵז וּלְהֵעָבֵד, וּוְלָדָן וַחֲלָבָן אָסוּר לְאַחַר פִּדְיוֹנָן, וְהַשּׁוֹחֲטָן בַּחוּץ חַיָּב, וְעוֹשִׂין תְּמוּרָה, וְאִם מֵתוּ יִקָּבֵרוּ.
All [consecrated animals] whose consecration preceded their blemish, or whose temporary blemish [preceded] their consecration, and a permanent blemish developed in them afterward, and they were redeemed —- are exempt from the laws of bechor and from the gifts [due the Kohen], and they do not revert to mundane status to [the extent that they may] be shorn and put to work, their offspring and their milk are prohibited after their redemption, one who slaughters them outside [the Temple Courtyard] is liable, they effect temurah, and if they died they must be buried.
Bechoros2: 4
הַמְקַבֵּל צֹאן בַּרְזֶל מִן הַנָּכְרִי, וְלָדוֹת פְּטוּרִין, וּוַלְדֵי וְלָדוֹת חַיָּבִין. הֶעֱמִיד וְלָדוֹת תַּחַת אִמּוֹתֵיהֶם, וַלְדֵי וְלָדוֹת פְּטוּרִין, וּוַלְדֵי וַלְדֵי וְלָדוֹת חַיָּבִין. רַבָּן שִׁמְעוֹן בֶּן גַּמְלִיאֵל אוֹמֵר: אֲפִלּוּ עַד עֲשָׂרָה דוֹרוֹת פְּטוּרִין, שֶׁאַחֲרָיוּתָן לַנָּכְרִי.
[If] one receives animals at their fixed value from a non-Jew, the offspring are exempt [from the law of bechor], but the offspring of that offspring are liable. [If] he put the offspring in place of their mothers, the offspring of the offspring are exempt [from the law of bechor], but the offspring of the offspring of that offspring are subject [to it]. Rabban Shimon ben Gamliel says: Even up to ten generations, they are exempt [from the law of bechor], because the non-Jew has a lien on them.