Maulana Nor Mohammad was going from Shamli to Shahpur yesterday when six youths entered the vehicle near Bhaju village here and assaulted him, SP Rural Alokpirye Dershi said.
The accused later fled from the spot, he said.
A case has been registered against six unidentified youths in connection with the case, he said.
The cleric, who works in a mosque in Kamalpur village, was taken to a hospital for treatment.
Meanwhile, locals staged a demonstration outside Shahpur police station and blocked the road for several hours in protest against the incident, police said.