Masoud's body is dug up from a hole inside Hafez's shop after Ateeq testifies against him, so it is proven that he committed the murder, and the judge sentences him to death by firing squad.