סימן קצב סעיף ג
הַתּוֹרָה נָתְנָה רְשׁוּת לָרוֹפֵא שֶׁיְרַפֵּא, שֶׁנֶּאֱמַר, וְרַפֹּא יְרַפֵּא. וְלָכֵן אֵין לוֹ לַחוֹלֶה לִסְמֹךְ עַל הַנֵּס, אֶלָּא חַיָב לְהִתְנַהֵג בְּדֶרֶךְ הָעוֹלָם לִקְרוֹא לְרוֹפֵא שֶׁיְרַפֵּהוּ. וּכְבָר כַּמָה חֲסִידֵי עוֹלָם נִתְרַפְּאוּ עַל יְדֵי רוֹפְאִים. וּמִי שֶׁמּוֹנֵעַ אֶת עַצְמוֹ מִלִּקְרוֹא לָרוֹפֵא, שְׁתַּיִם רָעוֹת הִנֵּהוּ עוֹשֶׂה, הָאַחַת, דְּאָסוּר לִסְמֹךְ עַל הַנֵּס בְּמָקוֹם שֶׁיֵּשׁ סַכָּנָה, וְדָבָר זֶה גּוֹרֵם שֶׁיִזָּכְרוּ עֲוֹנוֹתָיו בִּשְׁעַת חָלְיוֹ. וְעוֹד, דַּהֲוֵי יֻהֲרָא וְגֵאוֹת שֶׁסּוֹמֵךְ עַל צִדְקָתוֹ שֶׁיִתְרַפֵּא בְּדֶרֶךְ הַנֵּס. וְיֶשׁ לוֹ לִקְרוֹא לָרוֹפֵא הַיוֹתֵר מֻמְחֶה, וּבְכָל זֹאת לִבּוֹ יְהֵא לַשָׁמַיִם, וִיבַקֵּשׁ רַחֲמִים מֵאֵת הָרוֹפֵא הַנֶּאֱמָן יִתְבָּרַךְ שְׁמוֹ, וְאַךְ בּוֹ יִבְטַח לִבּוֹ (ברכי יוסף) (וְעַיֵּן לְעֵיל סִימָן סא סָעִיף ד).
The Torah permits a doctor to heal the sick, as it is said "And he shall [pay] to have him healed properly."6Exodus 21:19. Therefore, a sick person should not rely on a miracle, but is obliged to follow the accepted procedure and call a physician to heal him. Many of the world's pious men have been cured by physicians. A person who refrains from calling in a physician (for himself) commits two wrongs: For one, it is forbidden to rely on a miracle in a life-threatening situation. This behavior causes one's sins to be remembered at a time of illness. Secondly, it is arrogant and presumptuous to rely on your righteousness that you will be healed in some miraculous manner. You should call the most competent physician but with all that, your heart should be turned to Heaven, and pray for mercy from the Faithful Healer, blessed is His Name trusting in Him alone.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)