We are not familiar with Jesus saying that. There are, however, similar teachings from Samael Aun Weor, who stated in order to eliminate defects, egos, vices, or errors, we need much repentance, remorse, suffering, and comprehension first.
Joyful in hope, suffering in tribulation, be thou constant in thy prayer.
Benedictis, qui venit in nomine Domini. Osanna in excelsis.
"Blessed is he who comes in the name of the Lord. Hosanna in the highest!"