שולחן ערוך, יורה דעה שמ״ח

Shulchan Arukh, Yoreh De'ah 348

דין שרפה על המת והאומר אל תקברוני. ובו ג' סעיפים:
שורפין על המלכים (או על הנשיאים) (טור בשם תוספתא) מטתן וכלי תשמישן אבל על ההדיוטות אסור:
They burn at [the funerals] of Kings, or [at the funerals] of princes, their bed[s] and articles which they used, but for commoners it is forbidden [to do so].
האומר אל תקברוהו מנכסיו אין שומעין לו אלא מוציאין מיורשיו כל צרכי קבורתו בעל כרחו וכן כל מה שרגילין לעשות לבני משפחתו ואפילו האבן שנותנין על הקבר והוא שירשו ממון מאביהם:
One who gave instructions [that when he dies] he should not be buried at the expense of his estate, is not to be obeyed, but they collect from his heirs [for] all his burial needs against their will, and likewise [for] all that is customarily done for [other] members of his family, and even [for] the stone that is placed upon his grave, provided that they inherited money from their father.
אפילו מי שאין לו ממון שצוה ואמר אל תקברוהו אין שומעין לו:
Even one who has no money, who gave instructions [that when he dies] he should not be buried [in order not to become a public charge], is not to be obeyed.

Ashlei Ravrevei: Shulchan Aruch Yoreh Deah, Lemberg, 1888 (Public Domain) · Code of Hebrew Law by Chaim N. Denburg, Montreal, 1955 (CC-BY) · 3 se'ifim