It's happened about 5 times. And if you want to get technical. It just happened with the 2016 election. But I'll give you some names to start. John Quincy Adams
Rutherford B. Hayes
Benjamin Harrison
George W. Bush
And our most recent - Donald Trump
I hope this answer has done more than satisfy.