Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates that the Prophet (peace and blessings be upon him) said: "Kill the gecko, even if it is inside the Ka'bah."
Al-Tabarani recorded it in al-Mu'jam al-Awsat; its chain contains a narrator, Umar bin Qays al-Makki, and he is da'if (weak).