Rev Fred Nile, 88, will have served in the NSW parliament for 42 years when he retires, a record in NSW.
Mr Nile used his valedictory speech to say he dreamed of living in a society without drugs or excessive drinking, that treats gambling as an evil and sees sex work as a "scourge".
"My Christian faith, a faith that many of you hold here in this chamber, has guided me in these years."
"I was disappointed to see that abortion was decriminalised in NSW, as was euthanasia," he said of the reforms, passed in 2019 and 2022.
He said he also wanted to see the gap closed for outcomes for Indigenous and non Indigenous Australians.
Earlier this year Mr Nile introduced a bill to the parliament to create an Aboriginal cultural heritage council, which he hopes will pass the parliament before too long.
One of his greatest regrets in life was that he did not spend enough time with his family, he said.
"I'll make up for it now."
"I will now say goodbye to this chamber, as I have spent nearly half my life in it," Mr Nile told the chamber.
The speech was called a historic moment by President of the Upper House Matthew Cox, who said Mr Nile was the "grandfather" of the upper house.
Mr Nile was elected to the Legislative Council in 1981 as a member of the Call To Australia Group, which later became the CDP.
He has served in the NSW upper house ever since, aside from a few months in 2004 when he resigned to unsuccessfully run for the federal Senate.
Liberal MP for the South Coast Shelley Hancock and Labor MP Nick Lalich are also due to give their valedictory speeches on Wednesday.