The Nampally Court in Hyderabad sentenced Mohd Fareed, 45, to 25 years of imprisonment on Wednesday for sexually assaulting a minor girl.