The Messenger of Allah ﷺ said, "When a Muslim visits his brother in sickness or pays him a visit for the sake of Allah, Allah says, 'You have done well, your walking has been blessed, and you have secured for yourself a dwelling in Paradise.'"Hassan said in his version, "for the sake of Allah," but Affan said, "a dwelling in Paradise" instead of "in Paradise a dwelling." Hassan included the phrase "for the sake of Allah," while Affan did not.
حدثنا حسن وعفان قالا حدثنا حماد بن سلمة قال عفان في حديثه حدثنا أبو سنان عن عثمان بن أبي سودة
أن رسول الله ﷺ قال إذا عاد المسلم أخاه أو زاره قال حسن في الله عز وجل يقول الله عز وجل طبت وطاب ممشاك وتبوأت منزلا في الجنة قال عفان من الجنة منزلا قال حسن في الله ولم يقله عفان