Upon the withdrawal from service of a member who is not eligible for a service or disability pension, the accumulated contributions with interest shall be paid to the member. This section shall be applied retrospectively to members who withdrew from service on or after July 1, 1976.