How to train him???

Does your dog just randomly stare at you?My husband older dog has developed this bad habit if just sitting there and staring at me forever. Does anyone know why he would do this? He does like men more than women, and he isn't a huge fan of me, but we get along fine. He just prefers my husband. Is there a way I can properly tech him to stop? I do not like being started at, it's a pet peeve of mine and I'd like to tech him to stop.