Secretly investigating personal matters has different types, not all of them are permissible. It is not permissible in Islam to spy on others even on matters which you don't like or don't accept unless it is a criminal matter which victimises others. Husband and wife are not allowed to spy on one another unless there a reasonable possibility of a criminal or Haraam act which can be stopped or prevented by such investigation.
Wassalam.