It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that he used to say: "The obligation of water (ghusl) depends on water (the emission of semen)."
Imam Abu Ya'la al-Mawsili narrated it: Sayyiduna Ibn Abbas (may Allah be pleased with them both) narrates that "the Messenger of Allah (peace and blessings be upon him) sent for a man of the Ansar, and he was somewhat late in coming. When he came, he (peace and blessings be upon him) asked: 'What held you back?' He said: (O Messenger of Allah (peace and blessings be upon him)!) When your messenger came to me, I was engaged in marital relations with my wife; then I got up and performed ghusl. So he (peace and blessings be upon him) said: 'If you had not ejaculated, ghusl was not obligatory upon you.' The narrator said: The Ansar used to act upon this (in the early period of Islam)."
Imam al-Bazzar also mentioned this same narration with the same meaning by way of Abdullah bin Sa'id al-Kindi from Talhah bin Sinan.