It is narrated from Sayyiduna Ali (may Allah be pleased with him), he said: Whoever hears a sneeze and says: "In every condition, as it may be, all praise is due to Allah, the Lord of the worlds," then he will never suffer from toothache or earache.
Hadith Referenceالادب المفرد / كتاب العطاس والتثاؤب / 926
Hadith Gradingالألبانی:ضعيف موقوفًا و روي مرفوعًا
Hadith Takhrij«ضعيف موقوفًا و روي مرفوعًا : أخرجه ابن أبى شيبة : 29811 و الطبراني فى الدعاء : 1988 و الحاكم : 459/4 - أنظر الضعيفة : 6139»
Explanation & Benefits
Shaykh Maulana Usman Muneeb
Benefits and Issues: The chain of narration for this report is weak both in its marfu‘ (attributed to the Prophet sallallahu alayhi wa sallam) and mawquf (attributed to a Companion radi Allahu anhu) forms. In its chain is Abu Ishaq as-Sabi‘i, who was a mudallis (one who practices tadlis), and he is narrating with ‘an‘anah (using "from" instead of direct transmission). Therefore, this hadith is weak.
Source: Fadlullah al-Ahad: Urdu Commentary on al-Adab al-Mufrad, Page: 926