No he never said this. No pope has ever said this. The crux of the teaching is that there is no salvation outside the Church. In other words, everyone who IS saved was joined to the Catholic church in some way whether they understand that they were or not. Any kind of truth they have that the church also holds puts them in communion with the Church, even though it is an imperfect communion.