The Sunnah of visiting the sick includes asking about their condition with warm words and a dua. Adding may Allah have mercy on you transforms a simple greeting into an act of worship and intercession.