Must one wash hands if he was not within four Amos of the corpse?
One is not required to wash hands after a funeral unless he was within four Amos of the corpse.[1] Nevertheless, the custom today is to wash hands upon attending a funeral even if one was not within four Amos of the corpse.[2]
[1] Migdal Oz [Yaavetz] brought in Ketzos Hashulchan supplements 1 p. 82; Peri Megadim 4 A”A 21; Poskim in Kaf Hachaim 4:77; Piskeiy Teshuvos 4 footnote 239; Nitei Gavriel 70:1 [However Tzaruch Iyun if the P”M was referring to a funeral or only one who is near a corpse]
[2] Ishkavta Direbbe p. 107; Nitei Gavriel 70:1 in name of a number of Poskim; See Piskeiy Teshuvos 4 footnote 239 in name of Chazon Ish