قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " إِذَا نُودِيَ لِلصَّلاةِ صَلاةِ الصُّبْحِ، وَأَحَدُكُمْ جُنُبٌ فَلا يَصُومُ يَوْمَئِذٍ "
And the Messenger of Allah, peace and blessings be upon him, said: "When the call to prayer for the morning (Fajr) is given while one of you is in a state of major ritual impurity (junub), then he should not fast that day."
Related hadith on this topic