冥福
めいふく happiness in the next world; heavenly bliss
Why it means this
冥 here means the dark world of the dead, so 冥福 is happiness in the afterlife — 冥福を祈る, 'may they rest in peace'.
Breakdown
Each character links to its full entry — origin story, stroke order, and readings.