وَيَصِحُّ أَدَاءُ مَا وَجَبَ فِيهَا مَعَ الْكَرَاهَةِ كَجَنَازَةٍ حَضَرَتْ وَسَجْدَةِ آيَةٍ تُلِيَتْ فِيهَا
If a funeral becomes ready during one of these times, or a verse of Sajdah is recited during it, performing that newly-caused act then is valid but disliked. A cause that already existed before the prohibited time should not deliberately be carried into it.