It was narrated from Anas:
That the Messenger of Allah was treated by means of cupping when he was in Ihram on the top of the foot for contusion that he had suffered. (Daif)
أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ أَنْبَأَنَا عَبْدُ الرَّزَّاقِ، قَالَ حَدَّثَنَا مَعْمَرٌ، عَنْ قَتَادَةَ، عَنْ أَنَسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم احْتَجَمَ وَهُوَ مُحْرِمٌ عَلَى ظَهْرِ الْقَدَمِ مِنْ وَثْءٍ كَانَ بِهِ ‏.‏
Reference : Sunan an-Nasa'i 2849
In-book reference : Book 24, Hadith 0
English translation : Vol. 3, Book 24, Hadith 2852