You can only get cash back if you have spent with the team and reached the team target. Do note that this applies only if you left willingly instead of being removed from the team.

You will not receive any cash back from the team you have been removed from if you have either (a) not spent with the team, (b) the team target has not been reached or both.