Ibn 'Abbas (May Allah be pleased with them) reported:
The Prophet (ﷺ) visited a bedouin who was sick. Whenever he visited an ailing person, he would say, "La ba'sa, tahurun in sha' Allah [No harm, (it will be a) purification (from sins), if Allah wills]."[Al-Bukhari]. (DE)
App reference (DE): Book 7, Hadith 14 (DE)
Arabic/English book reference (DE): Book 7, Hadith 907 (DE)