Reference

user.changePassword:before

$user

Example

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