The former City pair moved to Arsenal in the summer where they have been hailed as major influences in the Gunners’ excellent campaign so far.
The boss says both players wanted to leave the Club and so the decision to let the move on was an easy one.
“When they want to leave they cannot stay,” said Guardiola.
“I wish the best for Gabriel and Oleks. They are fantastic people, and they helped us a lot. I never say one player leave, it’s the club and it’s their decision.
“Erling and Julian came and it’s difficult for Gabriel. What happened with Gabriel is normal. It was a good deal.
“For the players that were here, Gabriel, Raheem, Oleks. I have a big thank you for what they have done for us.
“It was a good transfer for the club. We are not in the position we are because we do not have Oleks or Gabriel.”
Watch Pep’s full press conference ahead of Sunday’s game against Wolves on the video above...