Hadith.2710 - A man from the Ansar married while he was in the state of ihram, and the Messenger of Allah (swt) (peace and blessings be upon him and his family) invalidated his marriage.
Man Lā Yaḥḍuruh al-Faqīh #1220Hadith.4434 - And in another narration:
"If he marries or gets married while in the state of ihram, his marriage is invalid."
Al-Kāfi #1360“Abu ‘Abd Allah (a.s.), has said, ‘A man from Ansar got married in the state of Ihram, and the Messenger of Allah, considered his marriage...