What specific case leads to prayer at the grave?

Funeral Prayer: Leadership, Four Takbirs, Supplications and Salam