Sayyiduna Hakam bin Harith Salmi رضي الله عنه says: I heard the Noble Prophet صلى الله عليه وسلم say: "Whoever takes even a span of land from the path of the Muslims, Allah Almighty will make him wear a collar of seven earths on the Day of Resurrection."
Related hadith on this topic