Cole Hamels suffered an oblique injury in late April 2017 when he was with the Rangers. At the time, it was said he’d miss about eight weeks.
That was just about how much time he did miss; he returned in late June. Even then, he wasn’t quite the same pitcher after the injury:
Before injury: 5 starts, 32u2154 innings, 3.03 ERA, 1.133 WHIP
After injury: 19 starts, 115u2153 innings, 4.53 ERA, 1.223 WHIPThe same thing happened to Hamels in 2019. He made 17 starts for the Cubs up to the end of June, posting a 2.