Rashard Lewis has agreed to a two-year deal with the Heat.

Lewis will receive the $1.35 million veteran's minimum in 12-13. The second season is a player's option.

Lewis was bought out by the Hornets following a trade from the Wizards.