William Howard Taft was 27th President and eight years after leaving office he became the 10th Chief Justice of the Supreme Court.
Nobody has ever been Chief Justice of the Supreme Court.
Many have, however, been Chief Justice of the United States.