סימן קעז סעיף ח
שְׁחָטוֹ וְנִמְצָא טְרֵפָה, עוֹרוֹ וּבְשָׂרוֹ אֲסוּרִים בַּהֲנָאָה, וְטָעוּן קְבוּרָה. וְהוּא הַדִּין אִם מֵת מֵעַצְמוֹ, טָעוּן קְבוּרָה. וְנוֹהֲגִין שֶׁכּוֹרְכִין אוֹתוֹ בְּסָדִין וְקוֹבְרִין אוֹתוֹ בְּבֵית הַקְּבָרוֹת בָּעֹמֶק (תשובה מאהבה)
If the firstborn is slaughtered and found to be a treifa, 4A treifa is an animal that has one or more of the eighteen categories of wounds and defects that render it prohibited for eating. it is forbidden to benefit from its hide and its meat, and it must be buried. Similarly, if it dies a natural death it must be buried. It is customary to wrap it in a sheet, and bury it deep in the ground of the cemetery.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)