It is narrated from Sayyiduna Rafi' bin Khadij (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When Allah, the Mighty and Majestic, loves a servant, He protects him from (the impurities of) this world just as one of you keeps water away from his sick person (for fear of harm)."
Ahmad bin Mani' recorded it. In the narration of Abu Ya'la it is narrated from Sayyiduna Uqbah bin Amir (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) used to say: "When Allah loves a servant, He keeps him away from this world just as one of you keeps his sick person away from water so that he may recover." Ibn Hibban in his Sahih and al-Hakim recorded it as marfu' (attributed to the Prophet) via Mahmud bin Labid from Sayyiduna Qatadah bin al-Nu'man (may Allah be pleased with him), and al-Hakim declared it sahih. This hadith also has a corroborating report (shahid) from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him), which al-Hakim recorded and declared sahih.