Hadithcore
Mishkat al-Masabih, 2694

Anas said that God’s messenger had himself cupped on the surface of his foot because of a pain in it while he was in the sacred state. Abu Dawud and Nasa’i transmitted it.

وَعَنْ أَنَسٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: احْتَجَمَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَهُوَ مُحْرِمٌ عَلَى ظَهْرِ الْقَدَمِ مِنْ وَجَعٍ كَانَ بِهِ. رَوَاهُ أَبُو دَاوُدَ وَالنَّسَائِيُّ

References1 variant
In-Book Reference
Book 10, Hadith 184