City boss Pellegrini dropped the club's long-established number one earlier this month after a period of inconsistent form in which he made a series of high-profile errors.
Despite that, Hart retained the faith of England manager Roy Hodgson and made a number of good saves in Tuesday's friendly loss to Germany at Wembley.
Pellegrini told BT Sport: "I think Joe played as we know he can play. It was a very good performance.
"I am happy for him and I think it will be useful for him also."
Hart's display has led to suggestions he could return for City's home Barclays Premier League clash with Tottenham on Sunday.
Pellegrini, however, would give no indication whether the 26-year-old might feature or remain on the bench.
Long-serving deputy Costel Pantilimon has been preferred for the past two Premier League games and played four in succession in all competitions.
Pellegrini said: "We will see what happens in the future. This is for all the players, for us it is game by game. We will see what happens."
Pellegrini's chief concern is making sure City get back to winning ways after defeat at Sunderland a fortnight ago.
With all four of their losses this season having come away, City are keen to protect their 100 per cent record at the Etihad Stadium but Spurs will pose a stern threat.
Pellegrini: "It is a tough match. I think they are a very good team. They have good players and play very good football.
"If we want to continue winning at home we need to play a very good game."
City are eighth in the table but are only six points behind leaders Arsenal in what has so far proved a tight competition.
Pellegrini said: "I think it is a special Premier League this year. There are six or seven teams within four or five points.
"We will see what happens in the future. Finally, the team that plays the better football is the team that wins the league.
"We will see which of the six or seven teams will continue from now until the end of the season."
- Sports & Recreation
- Barclays Premier League