Any employee participating in the provisions of this act, as amended, who leaves the employ of such city prior to retirement shall have refunded to him an amount equal to the amount which he has paid into said fund.