It’s hard to be a parent when your child gets arrested. And not everyone takes it well.

But one mother showed gratitude to police who arrested her daughter in Florida while she was on spring break.

>> Read more trending news

The Walton County Sheriff's Office posted the text of a letter it received last week on its Facebook page. In the note, a mother thanks the department for arresting her 19-year-old daughter for underage drinking.

“Yesterday, my daughter was one of the thousands of spoiled spring breakers ‘living it up’ on the beach,” she wrote. “She got arrested for underage drinking. She was holding a can of beer on the beach. A stupid move that I warned her about before she left, but I’m just her mother, so ‘in one ear and out the other.’”

She said the arrest taught her daughter a lesson, and she thanked the officers for their professionalism.

“The arrest scared the hell out of her, and I’m hoping she learned her lesson. The reason that I am sending this is that every officer that I talked to or that I could hear in the background talking to her was so nice! Firm, but nice,” the mother wrote. “For a mom hundreds of miles away, that was very reassuring. I know you all have to deal with this on a daily basis, which must be completely annoying, and I'm very sorry my daughter added to your workload yesterday. They say you always have one child that makes you go grey early and she is mine! Thank you for saving me a few more grey hairs last night.”

The post has been liked more than 3,000 times.