This is often said and I’m sure often in good faith, but I always find it a bit unsettling. If by “making sure it never happens again” you mean stronger protection of the boarder going forward it’s fine of course. But if you’re referring to someone kind of offensive operation (as I assume most who say this are, since they are defending an offensive operation) I can’t see how that would be possible within the law of armed conflict. It would require sending Gaza back to the stone age and keeping it that way forever, or permanent occupation, or something like that.