Sahih Muslim, Book 55, Hadith 74 (Muslim 7397)

The son of Abu Said al-Khudri reported on the authority of his father that Allah's Messenger (ﷺ) said:

When one of you yawns, he should keep his mouth shut with the help of his hand, for it is the devil that enters therein.