Section 158(3) in The Representation of the People Act, 1951
(3)If the candidate is not shown in the list of contesting candidates, or if he dies before the commencement of the poll, the deposit shall be returned as soon as practicable after the publication of the list or after his death, as the case may be.