Reference: Majmoo’ Fataawa wa Rasaa.il ‘Abdul-‘Azeez ibn Baaz – Volume 13
Question: What is the ruling regarding travelling for the purpose of the funeral prayer?
Response: There is no harm in that, and may Allaah send prayers and salutations upon our Prophet Muhammad and upon his family and his companions.