A man was sentenced to 40 years in prison for sexual abuse of children, according to the Bexar County District Attorney’s Office.