A Patna court has sentenced a man to two years of rigorous imprisonment for divorcing his wife through instant triple talaq.