Mishkat al-Masabih 3158
Ibn ‘Abbas said:
The temporary marriage applied only in the early days of Islam. A man would come to a settlement where he had no acquaintance and marry a woman for the period it was thought he would stay there, and she would look after his belongings and cook for him. But Ibn ‘Abbas said that when the verse came down, “Except their wives or the captives their right hands possess,” (Al-Qur’an 23:6) intercourse with anyone else became unlawful. 

Tirmidhi transmitted it.
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: إِنَّمَا كَانَتِ الْمُتْعَةُ فِي أول الْإِسْلَام كَانَ الرجل يقدم الْبَلدة لَيْسَ لَهُ بِهَا مَعْرِفَةٌ فَيَتَزَوَّجُ الْمَرْأَةَ بِقَدْرِ مَا يرى أَنَّهُ يُقِيمُ فَتَحْفَظُ لَهُ مَتَاعَهُ وَتُصْلِحُ لَهُ شَيَّهُ حَتَّى إِذَا نَزَلَتِ الْآيَةُ (إِلَّا عَلَى أَزوَاجهم أَو مَا ملكت أَيْمَانهم)
قَالَ ابْنُ عَبَّاسٍ: فَكُلُّ فَرْجٍ سِوَاهُمَا فَهُوَ حرَام. رَوَاهُ التِّرْمِذِيّ