Before retiring to bed, there is a special prayer that begins Ribono Shel Olam (before HaMapil). In this prayer, we forgive anyone who did wrong to us that day. The Chofetz Chaim states anyone who recites this prayer will live a long life (as a merit for forgiving other people).