SNEEZING —
Narrated Anas bin Malik: Two men sneezed before the Prophet, peace be upon him. He said to one of them, “May Allah bestow His Mercy on you (Yar-hamukallah).” But he did not say that to the other. On being asked (why), the Prophet, peace be upon him, said, “That one praised Allah (said Alhamdulillah at the time of sneezing), while the other did not praise Allah.”
[8: 240- O.B. Sahih Al-Bukhari]
YAWNING —
Narrated Abu Hurairah: The Prophet, peace be upon him, said, “Allah likes sneezing and dislikes yawning. So if someone sneezes and then praises Allah, then it is obligatory on every Muslim who heard him, to say: ‘May Allah be Merciful to you (Yar-hamukallah).’ As regards yawning, it is from Satan, so one must try one’s best to stop it as much as possible. If anyone of you yawns, the Satan laughs at him.”
[8: 242- O.B. Sahih Al-Bukhari)