Lawful and unlawful acts at graveyards and upon burial

When a person dies, some people say about him or her: 'So and so on whom mercy is bestowed died'