When you feel pain, it’s recommended to put your hand on the area of the pain and supplicate to Allah s.w.t.
Uthman ibn Abu al-‘As Al-Thaqafi reported that he made a complaint of pain to Rasulallah (ﷺ) that he felt in his body at the time he became Muslim. Thereupon Rasulallah (ﷺ) said:
(1) Place your hand at the place where you feel pain in your body
(2) and say Bismillah three times
(3) and seven times “A’udhu billahi wa qudratihi min sharri ma ajidu wa uhadhiru”
(I seek refuge with Allah and with His Power from the evil that I find and that I fear).
Sahih Muslim | https://sunnah.com/muslim/39/91