Section 382 of the Indian Penal Code (IPC) deals with theft after preparation for causing death, hurt, or restraint in order to commit theft. The punishment prescribed for this offence is rigorous imprisonment for a term which may extend to ten years and also a fine. This precisely matches the description and punishment mentioned in the question.