The San Francisco Giants are signing outfielder Michael Conforto to a two-year, $36 million deal, sources confirmed to ESPN on Friday.

The contract includes an opt-out after the 2023 season, the sources told ESPN’s Buster Olney.

Conforto is joining the Giants after missing the 2022 season following April shoulder surgery. He had become a free agent last offseason after declining an $18.4 million qualifying offer from the New York Mets.