John Quincy Adams practiced law after he was President. He argued the famous Amistad case.
I believe that Nixon practiced law after the Presidency too. I don’t know if he ever appeared in a courtroom, but he joined a high powered NY law firm.