Sahih Muslim, Book 39, Hadith 188 (Muslim 5778)

'Abdullah reported that Allah's Messenger (ﷺ) commanded a Muhrim (one who is in the state of pilgrimage) to kill the snake at Mina.