It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) ordered the killing of snakes in the state of ihram and in the Haram.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11365