President Trump — who called for “a total and complete shutdown of Muslims entering the United States” — marked the start of Ramadan in a statement Tuesday in which he lauded “the richness Muslims add to the religious tapestry of American life.”

“With the rising of tonight’s moon, I send my greetings and best wishes to all Muslims observing Ramadan in the United States and around the world,” Trump said.

“During the holy month of Ramadan, Muslims commemorate the revelation of the Quran to the prophet Muhammad through fellowship and prayer. Many observe this holy time by fasting, performing acts of charity, reciting prayers, and reading the Quran,” he continued.

The president added that Muslims observing Ramadan strengthen communities, help the needy and serve as examples of how to live a religious life.

“Ramadan reminds us of the richness Muslims add to the religious tapestry of American life. In the United States, we are all blessed to live under a Constitution that fosters religious liberty and respects religious practice,” said Trump, who is still trying to impose a travel ban on people from the Muslim-majority nations of Iran, Libya, Somalia, Syria and Yemen.

Federal courts across the country have blocked the implementation of three versions of the ban.

The Supreme Court heard arguments last month over Trump’s third try at an executive order banning people from the five countries.

The president’s statement stood in marked contrast to his past words.

In a December 2015 campaign speech, Trump also said most Muslims hate America.

“Without looking at the various polling data, it is obvious to anybody the hatred is beyond comprehension,” Trump said.

“Where this hatred comes from and why we will have to determine. Until we are able to determine and understand this problem and the dangerous threat it poses, our country cannot be the victims of horrendous attacks by people that believe only in Jihad, and have no sense of reason or respect for human life,” he said.

Trump has repeatedly ripped federal judges who have questioned or blocked his ban over the past 15 months, calling them “so-called judges” and their rulings “ridiculous” — and predicting he would eventually prevail.

The Supreme Court was expected to release its decision in the travel ban case in June.