Yalkut Meam Loez commentary on Kohelet [Ecclesiastes],
chapter 10, verse 4:
Do not be like the people who perpetually wander from one synagogue to another
because they suffered an insult.
The Yalkut Meam Loez commentary on Kohelet was written by Rabbi Shmuel Yerushalmi, following the death of Rabbi Yaakov Culiin 1732 CE in Constantinople.