Mishkat al-Masabih
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.
وَعَنْ أَنَسٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: احْتَجَمَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَهُوَ مُحْرِمٌ عَلَى ظَهْرِ الْقَدَمِ مِنْ وَجَعٍ كَانَ بِهِ. رَوَاهُ أَبُو دَاوُدَ وَالنَّسَائِيُّ
Reference