The image comes from the historical wandering of the Yellow River, which has shifted its course many times — towns once on the east bank found themselves on the west a generation later. Cited in Qing-era novel 《
儒林外史》 (The Scholars) by
吴敬梓 chapter 46.