Ali ibn Abi Talib reported: The Messenger of Allah, peace and blessings be upon him, said, “When one of you sneezes, let him say: All praise is due to Allah in every circumstance. Those with him should say: May Allah have mercy upon you. He should respond to them by saying: May Allah guide you and amend your affairs.”
Source: Musnad Aḥmad 973
Grade: Hasan (fair) according to Ahmad Shakir
عَنْ عَلِيٍّ رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا عَطَسَ أَحَدُكُمْ فَلْيَقُلْ الْحَمْدُ لِلَّهِ عَلَى كُلِّ حَالٍ وَلْيَقُلْ لَهُ مَنْ عِنْدَهُ يَرْحَمُكَ اللَّهُ وَيَرُدُّ عَلَيْهِمْ يَهْدِيكُمُ اللَّهُ وَيُصْلِحُ بَالَكُمْ
973 مسند أحمد
2/28 المحدث أحمد شاكر خلاصة حكم المحدث إسناده حسن في مسند أحمد