In this rule

Historical Rules · 3 February 2023

Rule 802.4a

Official source text from the 3 February 2023 Rules release

A defending player can block only with creatures they control. Those creatures can block only creatures attacking that player or a planeswalker that player controls.

Find this number in the current Rules