(CNN) A Minnesota state trooper moved a doctor to tears when he turned what should have been a speeding ticket into a heartwarming act of kindness.

Dr. Sarosh Ashraf Janjua, a cardiologist at a coronavirus quarantine unit in Duluth, was pulled over by Trooper Brian Schwartz for speeding on March 21.

But instead of a ticket, Schwartz handed Janjua five N95 masks he was supposed to use as protection -- along with a firm warning for speeding.

"I burst into tears. And though it may just have been the cold wind, I think he teared up a little as well, before wishing me well and walking away," Janjua said on Facebook

Dr. Sarosh Ashraf Janjua

"This complete stranger, who owed me nothing and is more on the front lines than I am, shared his precious masks with me, without my even asking."

Read More