Barack Obama actually said...
In politics and in life, ignorance is not a virtue. It's not cool to not know what you're talking about. That's not keeping it real or telling it like it is. That's just not knowing what you're talking about.
Context
Obama critiques Trump's plan to bar Muslims from entering the U.S.
05/15/2016