It is narrated from Ibn Umar (may Allah be pleased with them both) that he used to say: A Muhrim should not get cupped unless there is such a necessity for which there is no alternative.
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 917
Hadith Takhrijإسناده صحيح: أخرجه مالك في الموطأ، الحج، باب حجامة المحرم، والبيهقي في المعرفة (2883)۔