Come early and stay late in the synagogue, so that you may live long.
Sefer HaMidos, Prayer, Part I §38