Sayyiduna Abu Humayd (may Allah be pleased with him) narrates that indeed the Prophet Muhammad (peace and blessings be upon him) commanded that the mouths of water-skins be tied and the doors be closed at night.
Hadith Referenceصحيح ابن خزيمه / جماع أبواب الأواني اللواتي يتوضأ فيهن أو يغتسل / 130