Lance Lynn has spoken repeatedly about how much he likes being with the White Sox.

The feeling is mutual, as the two sides agreed to a two-year contract extension. Announced Saturday, the pact is for $38 million which includes a 2024 club option. Lynn is owed $18.5 million in both 2022 and 2023, and the Sox hold an $18 million option for 2024 with a buyout for $1 million.

Acquired from Texas over the offseason for Dane Dunning, Lynn was named an all-star and has gone 9-3 with a 1.99 ERA as the rotation has pushed the Sox to first place in the AL Central. Lynn, who was headed for free agency before Saturday’s news, was going to be one of the big offseason tasks for general manager Rick Hahn and the front office.

Now that question has been answered.

“We are thrilled to be able to keep Lance in a White Sox uniform for the next several seasons,” Hahn said in a news release. “He very quickly proved himself to be not only an All-Star caliber addition to the front of our rotation but also the positive clubhouse presence that we envisioned at the time of the acquisition. We look forward to Lance continuing to be a big part of what we’re hoping to accomplish not just in 2021 but now beyond.”