Detective bids farewell after four decades