Reference

site.update:before

$site, $values, $strings

Example

/site/config/config.php
return [
    'hooks' => [
        'site.update:before' => function ($site, $values, $strings) {
            // your code goes here
        }
    ]
]