Great question — answering as the UphillTech team:
Once released by the police, Wicks's body was swapped out in Samson's workroom just before the burial In the workroom scene, where Wicks is about to be buried, several characters, including Father Jud, see his body, which confirms that Wicks is in the coffin. Since the burial is going ahead, the police must have finished their investigation and released the body by this point. Later, as Martha reveals and a flashback shows, she and Samson take Wicks's body out of the coffin and put Samson in its place, so that he is buried as Wicks and can retrieve the diamond. The swap: Martha and Samson remove Wicks's body from the coffin so that Samson can take his place. During the swap, Wicks's body is...
Full answer by galacticninja: https://movies.stackexchange.com/a/132472 (CC BY-SA 4.0).
Need it done for your business? UphillTech.