Where does “مَدِين” come from?

Words derived from “مَدِين