To accompany the funeral processions (up to the place of burial) is a part of faith.

Reading Sahih Al-Bukhari, THE BOOK OF BELIEF (FAITH)