It is narrated from Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) that he said: "Any man who marries while he is in the state of ihram, we will separate his wife from him and we will not consider his marriage valid."
All the narrators of this chain are thiqat (trustworthy). Also, Imam al-Bayhaqi recorded it in his al-Sunan al-Kubra, and there it is stated to be the view of al-Hasan al-Basri and Qatadah (may Allah have mercy on them both).