Where does “寺” come from?

Words derived from “寺”