(CNN) — It was a chilly winter night in Greenville, South Carolina, and Emerson and Maya were on Girl Scout duty selling cookies outside a store.

At one point, a man approached the stand and bought seven boxes of cookies worth $40, and told them to keep the change, according to cookie manager Kayla Dillard.

READ MORE: Museum Of Science And Industry Reimagines Aviation For Passengers In 'Take Flight'

Then, he went back to the table and said: “Pack up all of your cookies. I’m taking them all so y’all can get out of this cold,” Dillard said in a Facebook post. He spent $540 on cookies, she said.

“What an amazing soul. It was about 34 degrees outside that night and we were there for about two hours already before he came,” Dillard told CNN.

READ MORE: 'It’s Better Than All The Holidays Rolled Into One': Parents Excited About Their Kids Getting The COVID Shot

A man bought $540 in cookies so these Girl Scouts could get out of the cold. (Courtesy Kayla Dillard)

“We all were shocked. The girls were very excited and thankful.”

Dillard said she does not know the good Samaritan. But his act of kindness surely earned him a place in the girls’ hearts for a long time.

MORE NEWS: Fulton Labs, New Biotech Startup In Fulton Market, Aims To Grow Chicago's Biotech And Life Sciences Industry

The-CNN-Wire™ & © 2019 Cable News Network, Inc., a Time Warner Company. All rights reserved.