Yosef Karo, Translation:Shulchan Aruch — Orach Chaim 526…
“ Paragraph 8 - If the residents of one city find out that a Jew died four or five days away and cannot be buried, they are permitted to set out on the second day of the holiday to bury him quickly, even if they will not get there until after the holiday. ”
