Sometimes a person comes to a certain place and suffers there. He should know that his forefathers were in that place and fell into some heresy there, or that his children will come to that place and fall into some heresy, and because of this he now suffers in that place.
Sefer HaMidos, Faith, Part II §1