TABARANI 4148:
from Khawwāt b. Ṣāliḥ b. Khawwāt b. Jubayr from his father from his grandfather —
[Machine] I fell ill, so the Prophet ﷺ visited me. When I recovered, he said: "There is no person who falls ill and then makes a vow or intends to do something good, except that they must fulfill what they have promised to Allah."
الطبراني ٤١٤٨:
عن خوات بن صالح بن خوات بن جبير عن أبيه عن جده —
مَرِضْتُ فَعَادَنِي النَّبِيُّ ﷺ فَلَمَّا بَرِئْتُ قَالَ «إِنَّهُ لَيْسَ مِنْ مَرِيضٍ يَمْرَضُ إِلَّا نَذَرَ شَيْئًا وَنَوَى شَيْئًا مِنَ الْخَيْرِ فَفِ لِلَّهِ بِمَا وَعَدْتَهُ»
hadithunlocked.com