The Police Department will review its so-called no-beard policy and has reinstated a Muslim officer who was suspended on June 21 for defying the rule, a department official and lawyers for the officer said on Thursday.

The rule was at the center of a federal class-action lawsuit filed on June 22 on behalf of the officer, Masood Syed, who said he was suspended without pay during Ramadan for refusing to shave his inch-long beard. The suit maintained that the policy and its irregular enforcement were unconstitutional.

Officer Syed, who has had a beard for 10 years, said in a statement that he hoped a new policy would allow him and other officers “to wear our beards at a reasonable length without the fear of retaliation or hostility.”

His lawyers have said the rule infringes on the rights of more than 100 officers seeking to exercise their religious freedoms.