One may wish someone else “Good Shabbos” or “Mazal Tov”, even with a handshake, before Davening. One may also be מנחם אבל before Davening, even if they don’t plan on Davening there, and so too one may do ביקור חולים – visiting a sick person before Davening even if they don’t plan on Davening there.