Sunan an-Nasa'i, Book 24, Hadith 221 (Nasa'i 2844)

It was narrated from Ibn Abbas:

That the Messenger of Allah got married when in Ihram.