I've heard and read that, but it is also a bit sketchy and probably not true, because of the astonishment of the disciples at his statement.
What Jesus did say is in response to the disciples question "Who then, can be saved?" was "With man it is impossible, but with God all things are possible."