Awakening late for the Fajr prayer at sunrise whilst needing to bath
Concerning a man who became junub and then awoke from sleep, however the morning has come in. Then he intends to bath but fears that the sun will rise so instead he makes wudhoo and prays. Then after the prayer he takes a bath, is he rewarded for the prayer or not?
If he becomes junub (needing to bath from marital relations/seminal discharge) then upon him is to bath and pray in the correct time, it is not for him to delay the bathing. So if he only but awakens at the time of sunrise, then the majority of the Scholars say: that he should bath and pray after the rising of the sun – and not pray in a state of janaabah. Yet others from them say: that he should pray it within its time after making wudhoo and tayammum. However; the first (saying) is the most correct. And Allaah Knows best.
Shaykh ul-Islaam Ibn Taymiyyah