Obama referred to the Israeli -- Palestinian conflicted in January 2006 .
Obama denounced Hamas while praising former Israeli Prime Minister Ariel Sharon .
Referring to the Israeli -- Palestinian conflict in January 2006 , Obama denounced Hamas while praising former Israeli Prime Minister Ariel Sharon .