Could you please clarify whether conducting the marriage ceremony in a mosque is a Sunnah or a voluntary practice.

The important thing in marriage is publicity. One of the best forms of increasing publicity is to make the ceremony in a mosque, where not only friends and relatives are invited, but also people frequenting the mosque are in attendance. The Prophet, peace be upon him, says: “Publicize marriage, and hold it in mosques and mark it with playing the tambourine.” [Related by Ahmad and Al-Tirmithi].

Needless to say, playing the tambourine is one way of showing pleasure. Similar methods, such as singing, are also encouraged. When the Prophet, peace be upon him, was told that the women in his household were attending a wedding, he said: “Why have they not taken with them a maid to sing?” He also suggested the wording of the song.