Jordan said he would donate the money after he won nearly $9 million from a jury in a lawsuit against one of the two supermarkets, Dominick’s, for unauthorized use of his name in an advertisement. He later settled a similar case against Jewel-Osco, which is owned by the same company that owns Dominick’s, for an undisclosed sum.

Jordan’s spokesman did not give the total of the donations given because of the confidential terms of the settlement with the two supermarkets, but the final sum, after costs were settled, was reportedly in the millions.

Jordan said he sued the supermarkets not for the money but to protect his name and image, which have allowed him to maintain the highest earnings of any other basketball player more than a decade after his retirement, according to the Chicago Tribune.

Jordan donated to 23 charities because of course, that was his number on the Chicago Bulls, the team he led to six NBA championships.