Yiddish: The closer to the synagogue, the farther from God.

SOURCE: Bernstein, Jüdische Sprichwörter und Redensarten.  Compare:

Better good than pious.  |  Beser gut eyder frum.  |  .בעסער גוט איידער פֿרום

SOURCE: Stutchkoff, Der Oytser fun der Yidisher Shprakh

װאָס נאָענטער צו דער שול, אַלץ װײַטער פֿון גאָט.

Vos noenter tsu der shul, alts vayter fun Got.

The closer to the synagogue, the farther from God.