The quote is often misattributed to Thomas Carlyle. The actual phrasing—"The true test of a man's character is what he does when no one is watching"—is a common proverb of unknown origin.
However, the sentiment aligns with Carlyle's philosophy. He championed the "great man" theory of history, arguing that influential leaders shape society. He also emphasized that true greatness involves moral character and compassion toward the less powerful, not just achievement.
While Carlyle didn't coin the quote, its essence reflects his views on leadership and moral responsibility.