Al Zuhri said “we were with ‘Umar bin ‘Abd Al Aziz, there we discussed temporary marriage. A man called Rabi bin Saburah said “I bear witness that my father told me that the Apostle of Allaah(ﷺ) had prohibited it at the Farewell Pilgrimage.”
Sunan Abi Dawud Book 12, Hadith 27