The Miami Dolphins are trading the No. 3 overall pick in the NFL draft to the San Francisco 49ers in exchange for the No. 12 overall pick and a third-round pick in 2021 and first-round picks in 2022 and 2023, sources told ESPN's Adam Schefter on Friday.

The move places the 49ers square in the mix to draft a top quarterback, but sources told ESPN that San Francisco is holding onto Jimmy Garoppolo and has no plans to trade him.

The 49ers opted to trade up because they're good with the options that will be there at No. 3, sources told ESPN.

The third-round pick in 2021 is the 49ers' compensatory pick for Robert Saleh's hiring.