California man stops bank robbery by talking to the suspect. It was his former neighbor.

A California man was waiting in line to deposit a check at a bank when he noticed a robbery unfold in front of him – and the suspect was his former neighbor.

Michael Armus Sr. was at Bank of the West in Woodland, California, on Monday when police said Eduardo Plasencia, 43, entered the bank and passed a note to a teller claiming he was robbing the bank and had a gun.

That’s when Armus, 69, who told Good Morning America that he recognized the suspect as his former neighbor and friend of his daughter, stepped in and encouraged Plasencia to not rob the bank, the Woodland Police Department said in a statement on Facebook.

Police arrested Plasencia outside the bank. He was charged with attempted robbery.

“His words of wisdom worked and Plasencia changed his mind and left the bank,” police said.

In the event of a bank robbery, security experts say people should avoid making a bad situation worse, be cooperative, don't be a hero and stay calm, among other tips.

A bank robbery ended with a hug

Armus said he tried to comfort Plasencia and asked him what was wrong.

"He said, 'There's nothing in this town for me. Nothing in this town for me. I just want to go to prison,' " Armus told GMA.

Armus then suggested the two go outside where the situation ended in a hug. "I (gave) the man a hug right here at the doors," Armus told GMA. "He started crying."

In the statement, police thanked Armus and said he "delivered the right message that made a difference."

More coverage from the USA TODAY Network

Bakery bear: Video shows bear breaking into a bakery in Avon, Connecticut, and eating 60 cupcakes

Watch: Virginia student walks across graduation stage after shooting left him paralyzed

Video: Footage shows woman keying more than 400 cars at dealerships in Vancouver area

This article originally appeared on USA TODAY: California bank robbery ends with hug after customer talks to suspect