Тегилим 30:12 Галаха: Kitzur Shulchan Arukh

הָפַ֣כְתָּ מִסְפְּדִי֮ לְמָח֪וֹל לִ֥י פִּתַּ֥חְתָּ שַׂקִּ֑י וַֽתְּאַזְּרֵ֥נִי שִׂמְחָֽה׃

Ты превратил мой траур в танец для меня; Ты потерял мою вретище и опоясал меня от радости;

Kitzur Shulchan Arukh

After the body is laid in the grave, the bier is turned over three times, for the numerical value of the word mittah (bed, bier) is the same as that of the word Din (judgement). This is an omen that the judgement will be turned into mercy, and the mourning into joy. The verse alludes to this, "You turned my mourning into dancing."5Psalms 30:12. On a day when Tachanun is not said, this is not done.