Tea party activist David Brat said Wednesday his stunning victory in Virginia's Republican primary, which made Eric Cantor the first House Majority Leader to lose a re-election in U.S. history, was nothing short of a miracle.

"It was basically a miracle, you know, from God straight through the people who worked so hard for me," he told CNBC's "Squawk on the Street."