Литература Второго Храма к Берешит 9:25

וַיֹּ֖אמֶר אָר֣וּר כְּנָ֑עַן עֶ֥בֶד עֲבָדִ֖ים יִֽהְיֶ֥ה לְאֶחָֽיו׃

И сказал: проклят Ханаан; раб слуг он должен быть у братьев его.

On the Prayers and Curses Uttered by Noah when he Became Sober

[32] It was Noah’s son Ham, who from idle curiosity wished to see his father naked, and laughed at what he saw and proclaimed aloud what it was right to leave untold. But it is Canaan who is charged with another’s misdeeds and reaps the curses. For it is said, “Cursed be Canaan; a servant, a bondman shall be be to his brethren” (Gen. 9:25).

The Midrash of Philo

Why is it that after the sacred historian has enumerated Ham in the middle of the offspring of Noah, or has placed him in the middle between his brethren, he nevertheless points out that he was the younger, saying, "Noah saw what his younger son had done to him?" (Genesis 9:25).