Anas b. Malik reported that two persons sneezed in the presence of Allah's Messenger (ﷺ). He (the Messenger of Allah) invoked mercy for one, and did not invoke for the other. The one for whom he had not prayed said
So and so sneezed and you said: May Allah have mercy upon you. I also sneezed but you did not utter these words for me. Thereupon he (the Holy Prophet) said: That person praised Allah, and you did not praise Allah.
This hadith has been narrated on the authority of Anas through another chain of transmitters.
Abu Burda reported
I visited Abu Musa, as he was in the house of the daughter of Fadl b. 'Abbas. I sneezed but he did not respond to it (by saying): Allah may have mercy upon you. Then she sneezed and he (Fadl b. 'Abbas) said: May Allah have mercy upon you. I came back to my mother and informed her about it, and when he came to her she said: My son sneezed in your presence and you did not say:" Allah may have mercy upon you, and she sneezed and you said for her:" May Allah have mercy upon you." Thereupon he said: Your son sneezed but he did not praise Allah and I did not beg mercy of Allah for him and she sneezed and she praised Allah and so I said: May Allah have mercy upon you, as I heard Allah's Messenger (ﷺ) as saying: When any one of you sneezes he should praise Allah and the other should say: May Allah have mercy upon you, and if he does not praise Allah, no mercy should be begged for him.
Iyas b. Salama b. al-Akwa reported that his father reported to him that he heard Allah's Apostle (ﷺ) as saying
A person sneezed in his presence and he said to him: May Allah have mercy upon you. And he then sneezed for the second time and Allah's Messenger (ﷺ) said to him: He is suffering from cold (and no response is necessary).
Abu Huraira reported Allah's Messenger (ﷺ) as saying
The yawning as from the devil. So when one of you yawns he should try to restrain it as far as it lies in his power.
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.
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 try to restrain it with cue help of his hand since it is the Satan that enters therein.
The son of Abu Said al-Khudri reported on the authority of his father that Allah's Messenger (ﷺ) said. When one of you yawns while engaged in prayer, he should try to restrain so far as it lies in his power, since it is the Satan that enter therein.
Abu Said al-Khudri reported Allah's Messenger (ﷺ) a hadith like this through another chain of transmitters.