Reference

user.update:before

$user, $values, $strings

Example

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