Ted Hakey, a former Marine, knelt in prayer, his forehead on the floor, beside his Muslim neighbours inside their Connecticut mosque last Saturday.

The enormity of that gesture was lost on no one.

It was only several months earlier, on the night of the terror attacks in Paris, when 48-year-old Hakey went to a local bar and downed 10 drinks.

In the early morning, he went home, drank some more and loaded his 9mm handgun and an M14 rifle. He went into his yard and fired rounds at the side of the mosque next door.

His Facebook page was laden with vile anti-Muslim hate speech. Text messages with friends, obtained by law enforcement, showed the same.

In one post, he noted living next to a mosque and keeping watch on them with “binos” (presumably, binoculars). In another, he wrote, “Is Muslim season open yet? I’m in a target rich environment.”

But rather than hate him back, Dr Mohammed Qureshi, president of the Baitul Aman “House of Peace” Mosque, wished he had been a better neighbour by making an effort to get to know Mr Hakey and his wife. Perhaps then, he reasoned, Mr Hakey would not have harboured so much anger.

So, five months after Mr Hakey’s bullets were found inside near the prayer area, Dr Qureshi invited him to an event at the mosque, titled “True Islam and the Extremists". When the Hakeys arrived, the congregants welcomed them without judegment. Mr Hakey tearfully apologised for the pain he caused them.

Mr Hakey had asked his lawyer for the chance to apologise, so Dr Qureshi and a few others had met with Mr Hakey privately a week earlier on Good Friday. Dr Qureshi, before even hearing the apology, brought Mr Hakey chocolate Easter eggs as a gift.

“I’ve never had anything like this,” Dr Qureshi said of that first meeting.

"It was very emotional. He came in in tears, he was quivering. I could feel it in his heart and his eyes that he meant what he said. I felt like he was saying it from his heart. It’s a rare moment when you see someone with so much hate for you come and apologise.”

But some members of the congregation remained wary knowing a man lived next door who had wished them harm. Dr Qureshi invited Mr Hakey to come visit the mosque so he could show them he was sorry.

“As a neighbour, I did have fears, but fear is always when you don’t know something. The unknown is what you are always afraid of,” Mr Hakey told them, according to the Hartford Courant, which covered the April 2 event.

“Going forward I want to help you bridge that gap and help someone else not make the same mistake I did.”

Mr Hakey, in an interview, said he was “so overwhelmed” by how graciously he was treated after what he had done. He said he’s now hearing from Muslims all over the world thanking him for coming forward to apologise.

“The forgiveness was so genuine,” he said. “I realised they were really good people and the whole way they handled it was above and beyond.”

His wife, Myra, who went with him, said she too was amazed by how warmly they were welcomed. She admitted that while she didn’t hold the same extreme feelings as her husband against Muslims, she too was uneducated and felt afraid.

“There were women crying and thanking me and said they were praying we would come,” she said. “There’s so much hate and these people just want peace.”

Dr Qureshi’s mosque practices a type of Islam called Ahmadiyya, a reform sect that believes the Messiah has already come. That man, Mirza Ghulam Ahmad, taught that “jihad by the sword” is not Islam and advocated for the end of religious wars and bloodshed. Ahmadiyya believers have launched a “True Islam” campaign to distinguish the religion from extremism.

It highlights 11 principles that if all Muslims endorsed there would be no terrorism, Dr Qureshi said. They include belief in nonviolent Jihad, human rights, and the understanding that “no religion can monopolise salvation.”

This is the message he imparted to Mr Hakey, who in turn, promised to educate others.

Pakistani Muslim devotees mark saint's death Show all 10 1 /10 Pakistani Muslim devotees mark saint's death Pakistani Muslim devotees mark saint's death Pakistan Pakistani Muslim devotees light candles while visiting the shrine of Saint Mian Mir Sahib, during an event marking the 369th death anniversary of the saint in Lahore Pakistani Muslim devotees mark saint's death Pakistan A Pakistani devotee sits at the shrine of Saint Mian Mir Sahib, during an event marking the 369th death anniversary of the saint in Lahore Pakistani Muslim devotees mark saint's death Pakistan A Pakistani Muslim performs at the shrine of Saint Mian Mir Sahib, during an event marking the 369th death anniversary of the saint in Lahore Pakistani Muslim devotees mark saint's death Pakistan A Pakistani Muslim devotee wears bells as he dance at the shrine of Saint Mian Mir Sahib, during an event marking the 369th death anniversary of the saint in Lahore Pakistani Muslim devotees mark saint's death Pakistan Pakistani devotees of famous 15th century Sufi saint Mian Mir attend a festival at his shrine in Lahore Pakistani Muslim devotees mark saint's death Pakistan Pakistani women light candles and oil lamps at the shrine of the Sufi saint Mian Mir Sahib during a festival to mark his 369th death anniversary in Lahore Pakistani Muslim devotees mark saint's death Pakistan Hundreds of devotees are attending the two-day festival in Lahore Pakistani Muslim devotees mark saint's death Pakistan Pakistani Muslim devotees light candles and oil lamps at the shrine of the Sufi saint Mian Mir Sahib during a festival to mark his 369th death anniversary in Lahore Pakistani Muslim devotees mark saint's death Pakistan Pakistani Muslim devotees play traditional pipes at the shrine of Saint Mian Mir Sahib, during an event marking the 369th death anniversary of the saint in Lahore Pakistani Muslim devotees mark saint's death Pakistan The saint was equally popular among the Muslim and Sikh religions, as Mian Mir went to Amritsar in December 1588 to lay the foundation stone of Sikhs holiest site, the Golden Temple, which is commonly known as Sri Harminder Sahib

In February, Mr Hakey pleaded guilty to damaging religious property, which is a federal hate crime. He will be sentenced in May and faces up to 14 months in jail. Dr Qureshi said his community will do its part to advocate for a lesser sentence.

Hate crimes against Muslims increased tenfold after 9/11 to nearly 500 in 2001. In 2014, the last year for which data is available from the FBI, there were 154 incidents recorded. That’s still about five times higher than the rate before 9/11.

To Dr Qureshi’s point that most prejudice is rooted in people being uninformed, more than 60 percent of Americans say they don’t personally know someone who is Muslim, according to a 2014 Pew Research survey. And Americans viewed Muslims more negatively than any other religious group.

Dr Qureshi said he is heartened by his new friendship with Mr Hakey, hoping the former antagonist can now be a powerful voice to counter the negativity against Islam.

“To see him there was very emotional,” Dr Qureshi said. “Imagine a few months ago he was our enemy. You have to see his side. His side is he had to have courage to be there among those people he once didn’t like. I think the man has had a change of heart.”

Mr Hakey - who also credits a court-mandated addiction treatment program that includes meditation and gardening with helping him find some inner clarity - said he has already started countering hateful posts on Facebook.

“Please listen to me, you’re absolutely wrong about this,” he said he commented when he saw someone disparaging Muslims. When they argued back, he said he replied, “I shot a mosque, don’t tell me about it. You need to be educated.”

“Every day you’re bombarded with negative images and posts misquoting the Koran,” Mr Hakey said. He said it was all confusing and made the distinction between terrorists and all Muslims blurred.

“He was misguided in that sense and that is what made him do what he did,” Dr Qureshi said. “Once I showed him our faith it made sense to him.”