Whether a player decides to retire or not depends on many factors.
Players on teams make decisions to retire at beginning of the postseason each season - players intending to retire at the season flip will let you know. Free agent retirement checks occur throughout the season.