A truck driver was pulled over for speeding in Indiana on Monday after receiving some of the worst news of his life -- but instead of getting a ticket, he got something else: A prayer.

Rodney Gibson, 60, had just found out that his daughter was losing a battle with breast cancer.

He admitted to the Bloomington Herald-Times that he was a little contentious with Indiana State Police Sgt. Todd Durnil, who pulled him over in Bloomington and proceeded to inspect the vehicle.

Indiana State Police Sgt. Todd Durnil We thank You for being kind !! I personally LOVE our Law Enforcement... https://t.co/3ivljkzrG3 — Patsy A. Matthews (@wildfireburning) January 8, 2016

That's when the officer asked Gibson about the angel pin he saw tucked into the truck's visor -- the same one he keeps in his cruiser.

Durnil told ABC News that Gibson said "with tears in his eyes" that his daughter gave him the pin, to help keep him safe as he drove, and then shared the grim news about her cancer diagnosis.

The police officer told the network that he planned to ask his family and church to pray for Gibson, and he didn't issue a ticket or even a warning.

"He still seemed agitated, but not as bad, and he apologized, saying, 'I'm sorry, I usually don't act this way, I've just been going through a lot,'" Durnil told ABC.

So he asked the trucker if there was anything else he could do.

"I sarcastically asked him if he knew how to pray," Gibson told the Herald-Times. "It was about my daughter at this point."

Our very own Rodney Gibson employee of West Side Transport needs our prayers for his daughter and family. https://t.co/0v6P04lM2d — West Side Transport (@WestSideTran) January 7, 2016

Sarcastic or not, Durnil was ready to oblige.

"Here I was thinking this man needs prayer, and now he's asking me for a prayer," Durnil told ABC News. "The good Lord put us together for a purpose."

The two prayed.

"He reached for my hand, and this man sent up a prayer, for my daughter and for my family, that sent chills all over my body," Gibson told the Herald-Times. "I will never, ever forget this, nor will my family."

Gibson called the trooper's station the next day to let them know he was grateful for the kind gesture, the Indy Channel reported.

CORRECTION: An earlier version of this story stated that the driver was pulled over in Indianapolis. He was pulled over in Bloomington.

Also on HuffPost:

PHOTO GALLERY The Most Heartwarming Thank You Notes To The Police