Cuttino Mobley has agreed to dismiss his amended complaint against Madison Square Garden over the heart condition that resulted in his 2008 retirement, according to court documents filed Friday.

Both sides agreed to have the case dismissed "with prejudice," meaning Mobley's claims against the Knicks and their parent company cannot be brought again. No court costs or legal fees are due either side, the attorneys agreed in papers filed with the U.S. District Court for the Southern District of New York.

Mobley, 37, had sued MSG claiming that the Knicks forced him to retire not because his previously diagnosed heart condition -- hypertrophic cardiomyopathy, or an enlarged heart -- rendered him physically unfit to perform, but rather to save money on luxury-tax payments. In June 2012, U.S. District Judge Deborah A. Batts granted MSG's motion to dismiss the case without prejudice, meaning the action could be brought again. Later that month, Mobley filed an amended complaint reiterating his claims.

This past May, it was revealed that Mobley -- who played for the Rockets, Magic, Kings and Clippers during an 11-year career that began in 1998 -- was planning to attempt an NBA comeback. It is not clear whether his decision to have his case against the Knicks' parent company dismissed is related to any progress on that front. According to a league source, Mobley has not yet secured a deal to return to the NBA.

The Knicks acquired Mobley and Tim Thomas from the Clippers in November 2008 for Mardy Collins and Zach Randolph as then-president Donnie Walsh began clearing cap room for a failed bid to sign free agent LeBron James. Mobley never played a minute for the Knicks  and was waived in April 2010.