Tauranga MP Simon Bridges said he felt "very emotional" after the two minutes of silence and prayer session inside the mosque.
The sermon was about how the community had come together after the tragedy - a message that resonated strongly with Bridges.
"The Islamic community could have reacted very badly after they have responded with love," he said.
Labour list MPs Jan Tinetti and Angie Warren-Clark were among the crowd, wearing headscarves.
Warren-Clark said she wore the scarf as a sign of "respect and a mark of sorrow".