Chapter 29: Medicine (Kitab Al-Tibb)
‘Uthman b. Abl al-As said that he came to the Messenger of Allah (ﷺ). ‘Uthman said: I had a pain which was about to destroy me. So the Prophet (ﷺ) said: Wipe it with your right hand seven times and say: “I seek refuge in the dominance of Allah, and His might from the evil of what I find.” Then I did it. Allah removed (the pain) that I had, and I kept on suggesting it to my family and to others.
Sunan Abi Dawud 3891