Barack Obama actually said...
The measure of courage is not that you don't worry or aren't afraid.
Context
Interview with Jack Schlossberg at the John F. Kennedy Presidential Library and Museum in Boston
05/06/2017
Interview with Jack Schlossberg at the John F. Kennedy Presidential Library and Museum in Boston