The second half of the Buddhist saying
苦海无边 ,
回头是岸 "the sea of suffering has no bounds, but turn your head and there is the shore". The shore is the far bank of enlightenment, open to anyone who gives up wrongdoing. The saying appears in Yuan-dynasty plays.