Assemblyman Denny Farrell issued a final goodbye statement on Monday as he retires from the Legislature next month after 42 years in office and endorsed his top aide to replace him in the chamber.

Farrell in the statement backed his chief of staff, Al Taylor, to take his Manhattan Assembly seat.

“He has worked closely by my side, and is intimately involved in the wide range of issues of concern to my constituents and to the state as a whole,” Farrell said.

Farrell submitted his resignation to Assembly Speaker Carl Heastie last week. His chosen retirement date, Sept. 5, coincides with the 51st anniversary of his first job in state government with the state Supreme Court in Manhattan.

“It has been a wonderful ride for me, serving with six governors and working closely with colleagues and staff on both sides of the aisle,” he said. “I consider them both colleagues and friends and I will miss them.”

At the same time, Farrell said his resignation was also submitted as a nod to health issues.

“I am taking this step for a number of reasons, including the desire to spend more time with my family and to deal with some issues concerning my health,” he said. “It also will give my Democratic colleagues the opportunity to name a new Chair of the Ways and Means Committee so the work of the committee can proceed without disruption on next year’s budget and other priorities as it always has soon after November’s election.”