What is the passive of the following sentence?

We expected him to bring the drinks

This is a sentence in active and I have to write it in passive.

My solution is: He was expected to bring the drinks
or the drinks were expected to be brought
which one is correct?

He was expected... <~~That's the correct passive for the sentence you posted above.

To identify the passive voice of the given sentence, you need to identify the object of the active sentence (the thing or person receiving the action) and make it the subject of the passive sentence.

In the given sentence, "him" is the object of the verb "expected." So, to change it into the passive voice, you would need to make "him" the subject of the sentence.

The passive voice of the sentence "We expected him to bring the drinks" would be "He was expected to bring the drinks."