Rav Huna said in the name of Rabbi Aivu: He created him wisely, as He created the needs of his sustenance and only then created him. The ministering angels said before the Holy One blessed be He: ‘Master of the universe, “what is a mortal that You remember him, a man that You take him into account”? (Psalms 8:5). This trouble, why should it come about?’ He said to them: ‘If so, “all sheep and cattle, all the animals of the field” (Psalms 8:8) – why were they created?

“The birds of the heavens and the fish of the sea” (Psalms 8:9) – why were they created?’ This is analogous to a king who had a tower filled with all manner of fine things, but he had no guests. What pleasure does the king derive from having filled it? They said before Him: ‘“Lord, our Master, how mighty is Your name throughout the world” (Psalms 8:10) – do what pleases You.’