Sahih al-Bukhari, Book 74, Hadith 50 (Bukhari 5411)

Narrated Jabir:

Allah's Messenger (ﷺ) said, "Extinguish the lamps when you go to bed; close your doors; tie the mouths of your water skins, and cover the food and drinks." I think he added, ". . . even with a stick you place across the container."