Kindly refer to the following link(s):
Do spouses have the right to check each other’s phones? (Spy)
Is spying on children permissible in Islam? (Installing apps to keep an eye on them)
Can husband check wife's phone, demand to have all her passwords & vice versa (Spy)