Yosef Karo, Shulchan Aruch — Yoreh Deah 375
“ From when he is buried and the filling of the grave with dust is finished, immediately the period of mourning begins and he wraps his head, but he does not take off his shoes until he arrives at his home. ”
