When you get a package of dry beans examine the cooking instructions on the side. Most likely they’ll stress that after you’ve soaked your beans in water for an hour or two, you should discard the water before cooking the beans very, very well. That’s not just a culinary tip. Undercooking your beans can cause extreme, painful, and occasionally long-term reactions.
Previously, I operated under the belief that we soaked the beans to minimize the oligosaccharides. This was to stop the farting before it started 😉
Now I also understand why it’s recommended to wash/rinse the beans with fresh water after soaking, prior to cooking.