ENOfficial
Ubayy b. Ka'b said that “Water is necessary only when there is an emission” was a licence granted in the early days of Islam, but that afterwards it was renounced. Tirmidhi, Abu Dawud and Darimi transmitted it.
Source: sunnah.com
Other translations
Arabic
عَنْ أُبَيِّ بْنِ كَعْبٍ قَالَ: إِنَّمَا كَانَ الْمَاءُ مِنَ الْمَاءِ رُخْصَةً فِي أَوَّلِ الْإِسْلَامِ ثمَّ نهي عَنْهَا
sunnah.com