Thomas Jefferson had more than 6000 books in his library on a wide variety of subjects. He believed in liberty and freedom of conscience with regard to religious beliefs.

The irony here is that Jefferson was the first president to get into a war with Barbary pirates, who happened to be islamic. The pirates would attack US ships in the mediterranean, capture the crews and demand ransom or extortion money. This extortion was being paid every year and reached about 10 percent of the US national budget. When Jefferson became president he refused to pay and Tripoli declared war on the US in 1801.

Short documentary on the Barbary war:
https://www.youtube.com/watch?v=cM97XzQn9IQ#t=241