Pay one’s last respects

To attend the funeral of someone.

Our family gathered to pay their last respects to our grandmother.