Can refer to one's own husband or someone else's husband in casual or traditional contexts. ご主人 is more polite and standard.
Etymology
Honorific prefix ご + 主人 (master, husband). The base word 主人 originally meant 'master' or 'head of household' and came to mean 'husband' in modern usage.