he had read the declaration of independence and it had moved him , rekindling his passionate yearning for a society where a man would be judged by his work alone and not by his social class or religion .