It wasnarrated that 'Abdullah bin 'Amr Al-Qari said:
"I heard Abuhurairah say: 'No, by the Lord of the Ka'bah! I did not say:"Whoeverwakes up in a state of sexual impurity (and wants to fast)then hemust not fast." Muhammad (ﷺ) said it.'" (ID)
English reference (ID): Vol. 1, Book 7, Hadith 1702 (ID)
Arabic reference (ID): Book 7, Hadith 1772 (ID)