Yosef Karo, Shulchan Aruch — Yoreh Deah 385
“ A mourner is forbidden to engage in greetings. How does this work? For the first three days he does not greet anyone and if others do not know that he is mourning and greet him, he should not respond to them. ”
