A court in Gurugram on Monday sentenced two men to life imprisonment for assaulting and murdering a truck driver in 2020.