Often analyzed as שָׁם (sham) + ־ָה (-a). Compare Arabic ثَمَّ (ṯamma), Aramaic תַּמָּה (tammā), תַּמָּן (tammān).
שָׁמָּה • (sháma)
שְׁמָהּ • (sh'máh)