Answer:
(Fatwa: 41/18/D=1432)
If there is time of two or four rakah salah before starting of the jama’ah, you can offer two or four rakah (as per the time) with the intention of sunnah, it shall suffice for tahiyatul masjid.
قال في النهر و ينوب عنها كل صلاة صلاها عندالدخول فرضا كانت أو سنة (شامي ج:1، ص:501)
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband
