Original: Jefferson died on July 4, 1826, the fiftieth anniversary of the Declaration of Independence, and a few hours before John Adams.
Simplified: Jefferson died on July 4, 1826, on the 50th anniversary of the day the Declaration of Independence became valid. John Adams also died on the same day as Jefferson.