Josh Smith has agreed to a four-year, $56 million contract with the Detroit Pistons, according to sources.

The Pistons pursued Smith the hardest among interested teams and reached an agreement on Saturday morning.

The Atlanta Hawks were hoping to work out a sign and trade with the Pistons, but Smith was able to sign directly.

Smith averaged 17.5 points, 8.4 rebounds and 4.2 assists for the Hawks last season.