Sonia Sotomayor: 'Always Remember Where You Came From and Who Raised You'

If you’re looking for some uplifting life advice before embarking on a new chatper, Sonia Sotomayor is your girl.

MORE: Sonia Sotomayor Calls This the Greatest Obstacle for Latinos

The U.S. Supreme Court Justice gave this year’s commencement speech at the University of Rhode Island, where she offered her best bits of wisdom to the new graduating class.

"Today is a beginning, not just an ending, and the experiences and memories you have created of the last few years will be of service to you long after you leave here," she said. "Always remember you have an obligation to help others gain the same joys and face the same challenges that you did."

Sotomayor drew on her own life and experiences, as a child of Puerto Rican migrant parents, with big dreams to become a lawyer and judge. She encouraged the students, too, to embrace their roots, NBC reports. "As caterpillars return to their roosting places as butterflies, it will always be important to remember where you came from and who raised you,” she said.

The 61-year-old speaker also spoke on the difference between those “aha” moments versus the “uh-oh” moments. “The ‘uh-oh’ moments are worth cherishing just as much as ‘ah-ha’ moments: Mistakes, failures, embarrassments and disappointments are a necessary component of growing wise,” she explained.

RELATED: 8 Latinas Who Support Equal Pay

Sotomayor also received an honorary degree at the commencement ceremony. Watch her full speech above, beginning at the 1:47:00 mark.