Traveling through Virginia 20 years before the Civil War , he was entertained at a plantation , where he was appalled to discover that slaves , in the wake of Nat Turner 's rebellion , were forbidden to learn to read and write .