Sefer Chasidim Siman 715
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
ביום טובה שישמע שמועה טובה היה בטוב דלא להתענות ולמספד וביום רעה שמת תלמיד חכם ראה שלא תראה בטיולין וביום רעה שטובעת אשה בנהר ראה אותה והצילה: