prior to his death on july 4 , 1826 , the 50th anniversary of the declaration of independence , thomas jefferson designed his own tombstone and wrote its inscription : `` here was buried thomas jefferson , author of the declaration of independence , of the statute of virginia for religious freedom , and the father of the university of virginia . ''