Moe Harkless is taking his talents to a contender.

The former St. John’s star, who made a cameo with the Knicks last season, has agreed to sign a one-year, $3.6 million deal with the Heat, ESPN reported Saturday.

The 27-year-old forward arrived in New York last season as part of the Marcus Morris trade and played 12 games for the Knicks before the pandemic suspended the season.

Playing for his hometown team, the Queens native averaged 6.8 points and 3.3 rebounds per game while making 10 starts. Harkless had “more lucrative” offers on the table, according to ESPN, but passed them up for a chance to help the Heat defend their Eastern Conference title.

The Knicks also saw Bobby Portis agree to a two-year deal with the Bucks on Saturday.