page.update:before
$page, $values, $strings
return [
    'hooks' => [
        'page.update:before' => function ($page, $values, $strings) {
            // your code goes here
        }
    ]
]Note that the page.update:before hook is only called when the content of the page content is updated, not when the slug, title, status etc. are changed.