Hadithcore
Mishkat al-Masabih, 2861

Jabir said that God’s Messenger forbade making an exception unless it was explicit. Tirmidhi transmitted it.

عَنْ جَابِرٍ قَالَ: إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ نَهَى عَنِ الثُّنْيَا إِلَّا أنْ يُعلمَ. رَوَاهُ التِّرْمِذِيّ

References1 variant
In-Book Reference
Book 11, Hadith 99