Donald Trump has blasted Hillary Clinton for accepting money from Saudi Arabia through her foundation, but a Daily News investigation reveals he has padded his bank account with cash from the same country.

Trump sold the 45th floor of Trump World Tower to the Kingdom of Saudi Arabia for $4.5 million in June 2001, according to a city Finance Department spokeswoman. In 2008, the apartments became part of the Saudi Mission to the United Nations, records show.

The five apartments included 10 bedrooms and 13 bathrooms at the time of the sale, and had yearly common charges of $85,585 for building amenities, documents obtained by The News show. If those common charges remain the same, Trump was paid at least $5.7 million by the Saudi government since 2001.

Saudi Arabia paid $4.5 million for the 45th floor of Trump World Tower in June 2001. The apartments are now part of the Saudi Mission to the United Nations. (Corey Sipkin/New York Daily News)

Meanwhile, blowhard Trump and his cronies have hammered Clinton on the campaign trail, saying she should return money Saudi Arabia gave to the Clinton Foundation because the Arab state has a poor human rights record.

Trump preaches the Gospel of Donald to black Detroit voters

“Crooked Hillary says we must call on Saudi Arabia and other countries to stop funding hate,” Trump posted to Facebook in June. “I am calling on her to immediately return the $25 million plus she got from them for the Clinton Foundation!”

Donald Trump has had a long history of dealing with Saudis. (Obtained by Daily News)

Rebecca Ocampo, who alleged in court papers she helped broker the deal between Trump and the Saudis, said the apartments were about more than money — they were also about “access” to a new, potentially lucrative market in the Middle East.

Ocampo, 67, and her company, Housing International, which specialized in housing for diplomats, sued Trump in 2001, seeking a broker’s fee for the deal. She said she abandoned the suit without it being resolved.

Copy of the deed between the Kingdom of Saudi Arabia and Trump World Tower. (Obtained by Daily News) Copy of the deed between the Kingdom of Saudi Arabia and Trump World Tower. (Obtained by Daily News) The five apartments included 10 bedrooms and 13 bathrooms at the time of the sale, and had yearly common charges of $85,585 for building amenities.

Records obtained by The News indicate Trump’s connection to influential Saudis predate the Trump World Tower deal.

Donald Trump hasn’t paid 10 top staffers

In 1985, Osama Bin Laden’s half-brother Shafiq Bin Laden paid an $8,500 security deposit for an apartment in Trump Tower. Records indicate Shafiq — often described as the Westernized, polar opposite of Osama Bin Laden — lived there for four months in 1986.

The Trump World Tower. 845 United Nations Plaza. Manhattan, NY. August 25, 2016. (Corey Sipkin/New York Daily News) (Corey Sipkin/New York Daily News) Apartment C was onw of five apartments Saudi Arabia purchased from Donald Trump. (Jeenah Moon/for New York Daily News) Apartment C was onw of five apartments Saudi Arabia purchased from Donald Trump in the Trump World Tower .

A Trump spokeswoman declined to comment to The News. A Clinton spokesman also declined to comment.

Trump, for his part, has sent mixed signals regarding his dealings with the Saudis.

Rebecca Ocampo (front right), helped Donald Trump get "access" to a new, potentially lucrative market in the Middle East. (Jeenah Moon/for New York Daily News)

“Would you take money from the Saudis?” Fox News’ Sean Hannity asked recently.

Trump calls 'Morning Joe' co-host Mika Brzezinski 'very dumb'

“No,” Trump replied.

Donald Trump has hammered Hillary Clinton for allowing Saudi Arabia to donate money to her charitable cause, but took lots of money from them for his wallet. (Facebook)

He told a different story last year.

“Saudi Arabia — and I get along great with all of them. They buy apartments from me,” Trump said in Mobile, Ala.

“They spend $40 million, $50 million. Am I supposed to dislike them? I like them very much.”

Donald Trump’s kids mocked for awkward millennial ad

The Saudi Mission did not respond to requests for comment.

“This underscores the need for him to release more financial information,” said Chris Talbot, a Democratic consultant not working with the Clinton campaign. “We just don’t know very much about his dealings, and that’s concerning from a voter’s perspective.”

Rudy Giuliani, one of Trump’s main surrogates, has gone so far as to call on Clinton to publicly apologize for accepting Saudi cash for the foundation’s charitable work in economic development, health and other arenas.

“I'd like to see her apologize for all the money that the Clinton Foundation has been taking, let's say from Saudi Arabia, where women are not allowed to drive. You tell me she’s a feminist and she takes money from a country where women are not allowed to drive?” Giuliani said last month on Fox News Sunday.

With Adam Edelman, Barbara Ross