The Allen & Co. Media And Technology Conference
Bloomberg—Bloomberg via Getty Images

Apple CEO Tim Cook Tells Students: If You Work Only For Money, You Will Never Be Happy

Apple CEO Tim Cook delivered a message Wednesday to students at Scotland’s University of Glasgow, where he was awarded an honorary degree: “Don’t work for money.”

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.

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.”

This article originally appeared on Fortune.

This article originally appeared on

All products and services featured are based solely on editorial selection. MONEY may receive compensation for some links to products and services on this website.

Quotes delayed at least 15 minutes. Market data provided by Interactive Data. ETF and Mutual Fund data provided by Morningstar, Inc. Dow Jones Terms & Conditions: S&P Index data is the property of Chicago Mercantile Exchange Inc. and its licensors. All rights reserved. Terms & Conditions. Powered and implemented by Interactive Data Managed Solutions