The Book of Marriage (Kitab Al-Nikah)
Muslim :: Book 8 : Hadith 3257
'Abd al-Malik b. Rabi' b. Sabraal-Juhanni reported on the authority of his father who narrated it on the authority of his father (i e. 'Abd al-Malik's grandfather, Sabura al-juhanni): Allah's Messenger (may peace be upon him) permitted us to contract temporary marriage in the Year of Victory, as we entered Mecce, and we did come out of it but he forbade us to do it.