From Sahih Muslim (Hadith 3324):
Asim reported:I asked Anas (Allah be pleased with him) whether Allah's Messenger (ﷺ) had declared Medina as sacred. He said: Yes, it is sacred, so its tree is not to be cut; and he who did that let the curse of Allah and that of the angels and of all people be upon him
Reference: Muslim 3324