She was arrested for sharing an offensive social media post targeting Muslims.
The court of Judicial Magistrate (First Class) Manish Kumar Singh, after granting the conditional bail, asked the girl identified as one Richa Bharti to submit one copy of the Quran to the local Anjuman Committee in the presence of police authorities, and four more copies to different libraries in the city.
"The magistrate has also sought the receipt or the acknowledgment of the donation within a fortnight," Bharti's lawyer Rampravesh Singh said.
The teenager was arrested on July 12 after the Anjuman Committee filed a complaint against her at the Pithora Police Station for sharing an objectionable post on Facebook, which reportedly hurt religious sentiments.
Welcoming the verdict, Md Jamil Khan, a member of the Anjuman Committee, said, "The committee, which looks after the health, education, and welfare of the local people, has accepted the verdict wholeheartedly. The woman has been asked to donate copies of the Quran to the committee as well as school and college libraries."
Meanwhile, Superintendent of Police (Rural) Asutosh Sekhar said that the officers were studying the court order to understand the stipulations.