Hadith 3148

Salama b. al-Akwa said that in the year of Autas* God's Messenger permitted a temporary marriage for three nights, but afterwards he prohibited it. *This was after the battle of Hunain in 8 A.H. Muslim transmitted it.

وَعَنْ سَلَمَةَ بْنِ الْأَكْوَعِ قَالَ: رَخَّصَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَامَ أَوْطَاسٍ فِي الْمُتْعَةِ ثَلَاثًا ثُمَّ نَهَى عَنْهَا. رَوَاهُ مُسلم

Reference: 5631480
In-book reference: Book 13, Hadith 3148