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)