Muhammad Usman was sentenced by Additional Sessions Judge Wasimur Rehman Khakwani during a hearing at a court here yesterday.
The judge also ordered Khakwani to pay a fine of Rupees 250,000 to for his offence.
Usman, a resident of Green Town in Lahore, kidnapped Naheem Sonu when she had gone to a market near her home to buy some candies.
He took her to a deserted place and raped and killed her, prosecutors said.