Miami Dolphins safety Nate Allen.

Miami Dolphins safety Nate Allen will receive $440,000 from Fort Myers to settle a civil rights lawsuit, his lawyers said Thursday.

Allen alleged the city’s police department racially profiled him in 2015. He was arrested and detained after a teenager, who said a man exposed himself to her, mistakenly identified Allen as the perpetrator.

The police didn’t follow proper procedure and held him for two hours after realizing a mistake was made, Allen claimed.

“While no amount of money can reclaim a person’s good name, we feel this settlement, coupled with the public statements made by the city’s mayor and city council members, does as much as can be done to right the wrongs that Nate Allen suffered,” said Allen’s lawyer, Jack Morgan of Aloia, Roland, Lubell & Morgan in Fort Myers. Morgan worked with colleague Sawyer Smith on the case.

A representative for the city did not immediately provide a comment, but Fort Myers Mayor Randy Henderson told the Southwest Florida Fox affiliate Allen “didn’t deserve this; the council understands that.” The city council unanimously approved the settlement.

The person the teenager saw has never been found, Morgan said.

Allen, 30, is a Southwest Florida native who went to Cape Coral High School and the University of South Florida. He launched his eight-year NFL career with the Philadelphia Eagles, then spent two years with the Oakland Raiders before joining the Dolphins for the 2017 season.