שולחן ערוך, יורה דעה שס״ב
Shulchan Arukh, Yoreh De'ah 362
לקבור בקרקע ואם קוברין שני מתים יחד. ובו ו' סעיפים:
הנותן מתו בארון ולא קברו בקרקע עובר משום מלין את המת ואם נתנו בארון וקברו בקרקע אינו עובר עליו ומכל מקום יפה לקברו בקרקע ממש אפילו בח"ל:
הנותן מתו בארון ולא קברו בקרקע עובר משום מלין את המת ואם נתנו בארון וקברו בקרקע אינו עובר עליו ומכל מקום יפה לקברו בקרקע ממש אפילו בח"ל:
One who places his dead in a coffin and did not bury it in the earth, transgresses thereby a [negative command] because he keeps the dead over night [unburied]. If he placed him in a coffin and buried it in the earth, he does not transgress [a negative command] on his account. Nevertheless, it is [more] appropriate to bury him in the earth proper even [when he is buried] outside the Land [of Israel].
נותנין המת על גביו ופניו למעלה כאדם שהוא ישן:
The corpse [when buried] is placed on its back and its face is upwards like a person who is asleep.
אין קוברין ב' מתים זה בצד זה אלא אם כן היה דופן הקבר מפסיק ביניהם ולא המת בצד עצמות ולא עצמות בצד המת אבל נקבר האיש עם בתו קטנה והאשה עם בנה קטן ועם בן בנה קטן זה הכלל כל שישן עמו בחייו נקבר עמו במותו:
They do not bury two corpses one alongside the other, unless the [intervening] wall of the grave separates between them. Nor [do they bury] a corpse alongside the bones [of another corpse], or the bones [of a corpse] alongside [another] corpse. However, a man may be buried with his minor daughter and a woman with her minor son or her son's minor son [in the same grave]. This is the general rule, — whosoever sleeps with him during lifetime may be buried with him when he dies.
אין נותנין ב' ארונות זה על זה ואם נתן כופין העליון שיפנה ואם יש ביניהם עפר ששה טפחים מותר:
They do not place two coffins, one above the other. If one placed [them in this position], they may compel [the owner of the] one above that it be removed. If between them [the coffins] there are six handbreadths of earth, it is permissible.
אין קוברין רשע אצל צדיק אפילו רשע חמור אצל רשע קל וכן אין קוברין צדיק וכשר ובינוני אצל חסיד מופלג: (אבל קוברים בעל תשובה אצל צדיק גמור) (ב"ז):
They do not bury a wicked man beside a righteous one; even a grossly wicked person [is not buried] alongside a moderately wicked one. And likewise they do not bury a righteous person, and so much the more an average individual beside an extremely pious one. However, they may bury a repentent sinner beside a perfectly righteous person.
שנים שהיו שונאים זה לזה אין לקברם יחד:
Two [people] who were enemies of each other, should not be buried together.
Ashlei Ravrevei: Shulchan Aruch Yoreh Deah, Lemberg, 1888 (Public Domain) · Code of Hebrew Law by Chaim N. Denburg, Montreal, 1955 (CC-BY) · 6 se'ifim