This is the exact phrase the Prophet said when visiting the sick. It offers comfort by reminding the patient that their illness purifies them from sins if they bear it with patience.