The millionaire tech boss, known for his comfortable yet measured speaking style, warned that being driven by money “will wear out fast, or you’ll never make enough and you will never be happy,” reports CNBC.
“You have to find the intersection of doing something you’re passionate about and at the same time something that is in the service of other people,” Cook said, adding that “if you don’t find that intersection, you’re not going to be very happy in life.”
After the ceremony, Cook joined students for what the university called a “fireside chat.” While encouraging students to find work they love instead of pursuing pure profit, Cook also acknowledged that he had been “fortunate” in landing his career, which last year earned him some $8.5 million, according to CNBC.
During a Q&A session, Cook also reiterated his opposition to President Donald Trump’s immigration policy, the BBC reports. Apple was one of more than 120 tech companies that filed a legal brief condemning Trump’s executive order banning refugees and travel from seven predominantly Muslim countries.
For more on tech companies opposing Trump’s travel ban, watch Fortune’s video:
Cook reminded the audience that Apple was founded by Steve Jobs, the son of a Syrian immigrant, and said the ban had an immediate effect on international tech firms. A number of Apple employees were initially denied entry to the U.S. when the order, which has been temporarily stayed by a legal battle, was first implemented.
“If we stand and say nothing it’s as if we’re agreeing, that we become a part of it,” the BBC quoted Cook as saying. “It’s important to speak out.”