The Sun (I know not the best source) said Barca and Madrid want him on a free next summer. I could see him staying and saying he wanted to play in Europe with Palace, then moving on next summer.
The Sun is saying Guehi is going to stay, run his contract down and then go to Real or Barca. Having Europe would be a good excuse to stay and then leave on a free.