A man who raped a teenager inside a Waynesboro business in the summer of 2023 was sentenced to 50 years in prison Friday.