Where does “شاه مات” come from?

Words derived from “شاه مات