IMAM Yusuf Peer told a gathering of Gladstone's Muslim and wider community that it was the teachings of the prophet to embrace other faiths, not disgrace them.
"Expose yourself to people, welcome them into your home," he said.
The Islamic Society of Gladstone held a belated Eid celebration for the end of Ramadan on Sunday at the Toondoon Botanic Gardens.
President Dzulkamal Ahmad said it was interesting to hear the Imam talk about the similarities between the Christian and Islamic faiths.
Bilal Chishti agreed.
"If we work together it is good for this country," he said.
"There is more pride and success in the world to learn more about different religions and mix together.
"It's a busy life in Gladstone so these events give you a good chance to get our families together as well."
His wife, Sadia Bilal, said at the end of the day, "we're all humans and we all have to work together".
Father Aliki Langi, from Gladstone Parish, told the gathering it was his privilege that Muslim brothers and sisters could make use of the Catholic hall during Ramadan to pray.
Sister Noreen, from the St Peter Chanel Parish, said it was a great opportunity to be invited to the celebration.
"It's opportunities like this that we get to know people as people, not as their faith," she said.
Her friend Jenny Brooks said it was also lovely to experience food of different cultures.
Join the Community.
Get your local news, your way.
Update your news preferences and get the latest news delivered to your inbox.