Yogi Ferrell and the Sacramento Kings have reached agreement on a two-year, $6.2 million.

Ferrell backed out of a two-year, $5.3 million deal with the Dallas Mavericks earlier on Friday.

“I heard the vision and optimism from Vlade and Brandon, and got a view of the culture and direction from veterans I look up to, and that was impactful,” Ferrell told Yahoo Sports. “I see the explosive potential from a starving young group that wants to open the floor up with more shooting and play with speed and smarts.

“I’m excited about the opportunity to grow with this team and I can’t wait to bring my heart to Sacramento.”