Answered by SunniPath Answer Service Team
Is one recommended to pray tahiyatul-masjid before the Maghrib prayer or should it be avoided because it falls in the time after asr?

Wa Alaykum Assalam wa Rahmatullah wa Barakatuhu,
In the Name of Allah, Most Merciful & Compassionate
From a previous question answered by Shaykh Faraz Rabbani:
It is also disliked to pray any nafl prayers:
After Fajr time comes in, except the 2 rakats of the sunna of Fajr,
After praying the fard of Fajr,
After praying the fard of Asr,
After Maghrib time enters, until one has prayed the fard,
After the khutba has commenced for the Friday prayer (or effectively, if the khatib has risen on the minbar).
In these times, if one enters the masjid, one simply sits down, and does not pray the 2 rakats of greeting the mosque. (One should intend it with the next prayer one performs, though.)
Wassalam,
SunniPath Fiqh Team
Please also see the following links in answer to your question: