New Jersey state trooper Michael Patterson was on patrol when he pulled over a white BMW for a routine traffic stop.

He asked the driver for his license and registration, and the two started making small talk. It turned out that the driver, Matthew Bailly, is a retired police officer from Piscataway, a township in central Jersey.

Patterson grew up in Piscataway, and they soon realized they knew some officers in common. That’s when the chitchat took a remarkable turn.

“What street did you live on?” Bailly asked Patterson, 26.

“Poe Place,” Patterson said.

Bailly always remembered Poe Place, he told Patterson, because he helped deliver a baby in a house there as a rookie. You don’t forget something like that, even almost 27 years later. Bailly said he even remembered the baby’s name, Michael.

Patterson’s mind raced — he was born at his parents’ house on Poe Place. Patterson had heard the story countless times from his mother: His dad called 911 in a panic. A police officer showed up to help.

Patterson blurted out: “That was me.”

“Get the hell out of here,” Bailly said in disbelief. “In the blue house? The colonial?”

“That was me. That was me,” Patterson repeated with a huge smile. “Thank you for delivering me.”

Bailly at first thought Patterson was pulling his leg. Surely, it would be too much of a coincidence for this trooper to be the kid he helped deliver almost three decades ago.

Then he saw the sincere look on Patterson’s face. The men laughed. They shook hands. They were in shock.

Patterson did not give Bailly a ticket for having a cover over his license plate, the original reason he stopped him.

When the men drove away, they each called their wives, and the wives asked whether they had taken a picture. They hadn’t. They hadn’t even exchanged information.

But Patterson knew Bailly’s address from the traffic stop, so he went by and left him a note. Bailly responded right away and invited him over. Patterson brought his mother.

“There were a couple of tears shed perhaps by my wife and his mom,” Bailly said.

Patterson’s mother, Karen Patterson, told the story she tells every year on Michael’s birthday, Oct. 5. It was 1991, and she was due any day. She decided to go to the grocery store with her oldest son, Terek, who was 10. She began having severe contractions.

Her water broke before she left the parking lot, but she drove home. There, her husband, Bobby Patterson, ran outside and carried her in. He called 911 and her doctor.

Bailly, new on the force, arrived soon after. Within minutes, the baby was born. The umbilical cord was wrapped around his neck, and Bobby Patterson had to gently lift it off.

Bailly, who helped make sure everything was OK at the house and got mother and baby into an ambulance, didn’t have children yet — it was the first time he’d seen a baby be born. It was monumental for him, and he, too, has told the story countless times over his career.

Patterson and Bailly got together for pizza another time. They said they will remain friends, for sure. They joke that Bailly might help deliver Patterson’s baby — his wife, Alison, is due in a few weeks.