A:
It is an act of Sunnah to offer two Rak`ahs between every Adhan and Iqamah (call to start the Prayer). It is reported that the Prophet (peace be upon him) said:
Between every two calls (Adhan and Iqamah) there is a Salah; between every two calls there is a Salah. In the third time he (peace be upon him) added: "For whoever wants to (do so)."
This includes Sunnah Ratibah (supererogatory Prayer performed on a regular basis), such as Sunnah (supererogatory) Salah performed before Fajr (Dawn) Prayer. Accordingly, a person who enters the Masjid and offers the Sunnah Ratibah before Zhuhr (Noon) or Fajr Prayers, it will suffice for Tahiyyat-ul-Masjid.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.