הָפַ֣כְתָּ מִסְפְּדִי֮ לְמָח֪וֹל לִ֥י פִּתַּ֥חְתָּ שַׂקִּ֑י וַֽתְּאַזְּרֵ֥נִי שִׂמְחָֽה׃
האָסטו מיר פֿאַרקערט מײַן קלאָג אין טאַנץ, האָסט אָפּגעבונדן מײַן זאַקקלײד, און מיך אָנגעגורט מיט פֿרײד;
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.