Islamic Ruling on Praying During Disliked Times
In the prayers with a valid prior reason like Sajdah Tilawah, Tahiyyat al Masjid, and Tahiyyat al Wudu are allowed during disliked times, while prayers without a reason are disliked.

According to Islamic scholars, some prayers are allowed during disliked times. Based on the hadith of Umm Salamah رضي الله عنها, the Prophet ﷺ prayed two rak‘ahs after Asr because he had missed them earlier due to a delegation. Another hadith states that whoever forgets a prayer or sleeps should pray it when they remember.
From these narrations, Islamic scholars concluded that making up missed obligatory prayers and Sunnah Rawatib is allowed during disliked times. Also allowed are prayers that have a prior cause. These include Tahiyyat al Wudu, Tahiyyat al Masjid, Sajdah Tilawah, and Sajdah Shukr. This is the accepted fatwa in the Shafi’i school.
However, prayers that have a later cause, such as the two rak‘ahs of Ihram or the prayer before execution, are disliked at these times. Likewise, voluntary prayers without any reason are disliked. An exception is on Friday, when praying at the time of Istiwa is allowed without restriction.
This Islamic ruling is clearly mentioned by Shafi’i scholars and is based only on the cited narrations and fiqh principles.