The Miami Marlins and free-agent closer Heath Bell have agreed on a three-year contract, pending a physical, sources told ESPN.com.

The two sides have been talking about a deal that would pay Bell $9 million a year. The deal also includes a vesting option for a fourth year.

Bell is expected to take his physical Friday in Florida, the sources said.