the Prophet got married while he was a Muhrim (in Ihram).
Sunan Ibn Majah Book 9, Hadith 121