Matt Barnes has announced his retirement from the NBA at the age of 37.

Barnes wrote on Instagram: "Had a cool 15yr run!! Traveled the world met alota cool people, some will be brothers for the rest of my life! BUT NOW.... You telling me I can dress like this for business meetings & make more money off the court than I made ON?? & spend more time with my kids??!!Ha... MEEEEE the one that wasn't suppose to be s--- & ended up making it!! Let's Do it! Love me or HATE ME, I DID IT MY WAY!"

Barnes finished last season with the Warriors and won a ring.

Barnes played for nine NBA teams over a 14-year career.