This CBA article outlines when salary (including signing bonus) can be recouped. Most signing bonus agreements also have language that the obligation of a player to repay money is an express provision of the contract & but for it, the team wouldn't have signed the contract.

— Joel Corry (@corryjoel) September 17, 2018