Abu ‘Abd Allah al-Husayn b. [Ahmad] Muhammad al-Khawatimi narrated from al-Husayn b. 'Ali b. Yaqtin from Hannan al-Sayqal from Abu Basir from Abu Ja’far al-Baqir, peace be upon him, that Abu Basir said: I complained to him of pain in my teeth, and that it kept me awake at nights. Abu Ja'far said: “O Abu Basir, when you experience that, place your hand over it, and recite the sura al-Hamd (1) and the sura al-Ikhlas (112), then recite:
And thou shalt see the mountains, that thou supposest fixed, passing by like clouds - God's handiwork, who has created everything very well. He is aware of the things you do. (27:88)
The pain will subside, and will not recur.”
Hamdan b. A’yan al-Razi narrated from Abu Talib from Yunus from Abu Hamza from Sama’a b. Mihran from Abu ‘Abd Allah, peace be upon him, that he [Abu ‘Abd Allah] instructed a man to recite the above invocation and added to it, saying: ‘Recite the sura al-Qadr (97) once. The pain will subside, and will not recur.’
[Also for pain in the teeth,] from Amir al-Mu’minin, peace he upon him, that he said: ‘Whoever complains of pain in the teeth, let him take the object on which he performs his prostration, and rub it on the painful area, and say: “In the Name of Allah, and the Healer, Allah; there is no Might nor Power except in Allah, the Most High, the Mighty.”’
It is reported from Abu al-Hasan, peace be upon him, that he said: ‘My teeth (al-asnan) were hurting me and I applied Cyperus rotundus (al-su’d) to them.’ He said: ‘Wine vinegar (khall al-khumr) strengthens the gums (al-litha).’ He also said: ‘'Take wheat (al-hinta), husk it, and extract the oil. If the tooth is decayed and rotten, put two drops of the oil in it. Put some oil on a piece of cotton and place it in the ear near the tooth for three nights. It will stop [the decay], Allah, the Exalted, willing.'