וַיֹּאמֶר֩ דָּוִ֨ד אֶל־יוֹאָ֜ב וְאֶל־כָּל־הָעָ֣ם אֲשֶׁר־אִתּ֗וֹ קִרְע֤וּ בִגְדֵיכֶם֙ וְחִגְר֣וּ שַׂקִּ֔ים וְסִפְד֖וּ לִפְנֵ֣י אַבְנֵ֑ר וְהַמֶּ֣לֶךְ דָּוִ֔ד הֹלֵ֖ךְ אַחֲרֵ֥י הַמִּטָּֽה׃
И сказал Давид Иоаву и всем людям, которые были с ним: 'Раздирай свою одежду, опоясывай вретищем и плачь перед Авениром.' И царь Давид последовал за гробом.
Mishnah Sanhedrin
If any of his near kin die he may not go out of the door of his palace. Rabbi Judah says: “If he wishes to follow the bier he may, since we have found that David followed the bier of Avner, as it says, “And King David followed the bier” (II Samuel 3:31) They answered, “That was only to appease the people.” When they feed him the funeral meal all the people sit on the floor and he sits on a couch.