Can a person attend a 3 days/40 days function for the deceased?

Question:

Can a person attend a 3 days / 40 days function for the deceased?


Answer:

3 days and 40 days are innovated actions and hence not permissible to attend.

And Allah knows best.
Mufti Waseem Khan