Pardon us if you have heard some version of this tale before, but the Mavericks on Friday lost a player who a day earlier agreed to contract terms with them.

Yogi Ferrell isn't in the same league, talent-wise, as DeAndre Jordan, who in 2015 reneged on a verbal agreement with Dallas. Nor is the undrafted Ferrell close in stature to Hall of Famer Jason Kidd, who similarly jilted the Mavericks in 2012.

Still, Ferrell's about-face stunned the Mavericks and is a setback to the organization's quickened rebuilding efforts, after the summer additions of the aforementioned Jordan and draft picks Luka Doncic, Jalen Brunson and Ray Spalding.

Friday afternoon, hours after his agent informed the Mavericks that he had changed his mind about signing Dallas' two-year, $5.3 million contract offer, Ferrell agreed to a two-year deal with Sacramento that Yahoo Sports reported to be worth $6.2 million.

Granted the Mavericks' summer backcourt additions could ease the blow of Friday's news, and a team source said a reunion with veteran Devin Harris now is a possibility. But Ferrell, 25, is the type of player that franchises covet: Young, homegrown, relatively inexpensive, hard-working, respected by teammates.

The Mavericks signed the 6-foot Ferrell to a 10-day contract in January 2017. He was Western Conference Rookie of the Month for February and was named NBA All-Rookie second team that season. Ferrell averaged 10.2 points, three rebounds and 2.5 assists while being the only Maverick to play all 82 games last season.

A Mavericks source told The News on Friday that Ferrell and coach Rick Carlisle had been in frequent communication since season's end.

The source said Carlisle had been open with Ferrell about what his role would be this upcoming season -- backup shooting guard, primarily -- and that Ferrell as of Thursday night was comfortable with that role and excited to remain a Maverick.

Then came Friday morning's reversal. The agent to whom Ferrell switched last season, Cervando Tejada, initially told Yahoo, "We felt uncomfortable and will weigh our options."

After agreeing to sign with Sacramento, Ferrell told Yahoo of the Kings, "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 stats," but didn't explain his change of heart with Dallas.

The Mavericks source said Ferrell and Tejada entered the offseason with a target of obtaining a two-year, $7 million deal.

Since Ferrell has been in the NBA fewer than three seasons, the Mavericks had the ability to retain his rights by extending a qualifying offer of $2.9 million, which they did.

On July 13, however, Dallas rescinded the offer, making Ferrell a free agent, but player and franchise continued to work toward a deal, ultimately agreeing to one with a first-year salary of $2.5 million, roughly $400,000 less than the qualifying offer.

Rescinding the qualifying offer was a calculated risk by Dallas, but the Mavericks source who spoke to The News on Friday said the franchise had no reason to believe it would lose Ferrell, especially after the verbal agreement was reached early Thursday afternoon.

By agreeing instead with Sacramento, Ferrell got closer to his $7 million goal and a $900,000 raise from what he would have made in Dallas, although that windfall will be significantly reduced by California income tax.

The Mavericks, meanwhile, are once again reminded that in the NBA, not everyone's word is gold.

It's official with Spalding: The Mavericks signed second-round draft pick Ray Spalding to a multiyear contract.

Spalding had a successful showing in summer-league action, averaging eight points and 5.2 rebounds while seeing action in all five of the Mavericks' games in Las Vegas.

Spalding averaged 12.3 points, 8.7 rebounds and 1.7 blocks as a junior at Louisville in 2017-18. He was considered one of the most athletic collegiate players and was one of just two players last season to average at least 8.5 rebounds, 1.7 blocks and 1.5 steals (Notre Dame's Bonzie Colson was the other).

Staff Writer Eddie Sefko contributed to this report

Twitter: @townbrad