A Montgomery man has been sentenced to prison for a 2023 robbery in which a sleeping victim was beaten in the head.