The Hadith (Inspired Sayings) of Muhammed
Fazlul Maulana-- Al Hadis, Vol. 2, p. 686, Ibn Masud reported, "We were fighting with the Messenger of Allah, and our wives were not with us. We asked the Messenger of Allah, 'Should we castrate ourselves?' The Holy Prophet forbade us from that, and then he allowed us Muta (temporary) marriage. So, we all married wives for a fixed time (usually three days) for the dowry of a piece of cloth." Attested by agreement.