Without knowing his 10 team NTC it is hard to figure out a deal that would work, I expect if he is moved it will be a 3 way trade with the middle team brokering the deal to get him to a destination he agrees to with 50% retention on the contract in exchange for assets.
Something like
Toronto 1st '24 top 10 protected and Murray for Montreal 3rd
Murray retained at 50% to a team he wants to go to for a '24 2nd
Toronto clears 100% of his cap hit
Montreal gets a 1st and a 2nd pick
3rd team gets Murray at 50%
I will add that I think at his relative young age for a goalie, Murray will be looking to rebound and get a new contract, he won't want to go to a team where he will be getting shelled during their rebuild, hence the need for the retention on his contract to go to a team closer to the cap ceiling.