AHMAD 15472:
from Ibn Abū Khuzāmah from his father —
[Machine] I said, "O Messenger of Allah" and Sufyan once said, "I asked the Messenger of Allah, ﷺ , if there is a remedy we can use, and if there is a charm we can seek to protect ourselves, and if there is a preventive measure we can take, would it be going against the decree of Allah, the Blessed and Exalted?" He said, "Indeed, it is from the decree of Allah, the Blessed and Exalted."
أحمد ١٥٤٧٢:
عن ابن ابو خزامه عن أبيه —
قُلْتُ يَا رَسُولَ اللهِ وَقَالَ سُفْيَانُ مَرَّةً سَأَلْتُ رَسُولَ اللهِ ﷺ أَرَأَيْتَ دَوَاءً نَتَدَاوَى بِهِ وَرُقًى نَسْتَرْقِي بِهَا وَتُقًى نَتَّقِيهَا أَتَرُدُّ مِنْ قَدَرِ اللهِ تَبَارَكَ وَتَعَالَى شَيْئًا؟ قَالَ إِنَّهَا مِنْ قَدَرِ اللهِ تَبَارَكَ وَتَعَالَى
hadithunlocked.com