Where does “ثَمَّ” come from?

Words derived from “ثَمَّ