Killer who stabbed and tried to rob man is jailed