It is narrated from Abu Layla (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) forbade regarding the snakes of houses, and said: "When you see any of them in your dwellings, say: 'We adjure you by the covenant which was taken from you through Nuh (peace be upon him); we adjure you by the covenant which was taken from you through Sulayman bin Dawud (peace be upon him).' Then if they return, kill them."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6399