A Texas man got more than he expected when a police officer pulled him over: a gesture of kindness.

Driver Hayden Carlo was pulled over in Plano, Texas, for an expired registration sticker on his car, according to Houston NBC affiliate KHOU. Carlo reportedly explained to the officer that he didn't have the money for the registration fee.

"I said, 'It was either feed my kids or get my registration done,'" Carlo, a 25-year-old father of two children, told CBSDFW.com.

When the police officer handed over the citation, Carlo found a $100 bill inside, according to KHOU. The Wylie man was then able to update his car registration, as well as the sticker on his wife's car.

Related: Phoenix cops replace sick girl's Christmas lights stolen by 'Grinch'

"He helped me out when I needed it, and I appreciate that," Carlo told KHOU. "I’ll never forget the man. It definitely restored my faith in God."

The officer does not want to be identified, Plano Police Department spokesperson David Tilley told NBC News on Monday. Tilley said the policeman's actions were "purely out of the goodness of his heart" and the officer told him that he felt the driver needed the money more than he did.

More content from NBCNews.com:

Follow US news from NBCNews.com on Twitter and Facebook