Sayyiduna Mikhmar bin Haydah al-Qushayri (may Allah be pleased with him) said: I said: O Messenger of Allah! I stay away from water for a whole month, and my family is with me; may I have intercourse with them? He (peace and blessings be upon him) said: "Yes." I said: O Messenger of Allah! I stay away for several months. He (peace and blessings be upon him) said: "Even if you stay away for thirty years."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17928