Washer leaks at end of cycle only

My washer leaked once so I pulled it apart and ran a cycle to watch and see where the water was coming from. No leaks. Put it all back together. Ran a couple of loads and was fine and then another big leak. Tore it apart again and watched another entire cycle. No leaks again. Put it back together. Ran several cycles with no leaks and now it’s leaking again. It seems to be happening right at the end of the cycle , but not entirely sure. Could be that’s just when I notice the water on the floor. Tried different detergents (not that I think it’s contributing, just trying everything even if it’s crazy), different types of clothes and load types and can’t seem to find a cause for why it leaks sometimes and not others. Checked the hoses, No funny noises. Please help!