It's not needed. The RFC9110 spec on 302 however doesn't forbid it as well.
The server's response content usually contains a short hypertext note with a hyperlink to the different URI(s).
Note that it does forbid the message body for certain statuses, such as 204 and 304.
A [204|304] response is terminated by the end of the header section; it cannot contain content or trailers.
If the same were true for 302, then it should surely have been explicitly mentioned.
As far as I know, all modern browsers ignore the message body of a 302 in response to a GET or POST and will directly go to the URL as specified in Location
header.