There is exactly such a rule. See the FIDE Laws of Chess [0], rule 9.6.1.
[0] https://handbook.fide.com/chapter/E012018