When Queens state Sen. Malcolm Smith asked the mayor to send the National Guard to patrol the Rockaways a day after Superstorm Sandy hit, Hizzoner said, “F–k you,’’ a source told The Post.

Smith confirmed that he called the mayor to request the Guard after looting broke out in the area, which is part of his district.

“We exchanged aggressive words about the use of the National Guard,” Smith said when asked about the spat.

“I saw the devastation. I saw the looting going on. People were all over the street. Things were out of control. Someone even tried to break into my car with me in it. The mayor felt the resources we had were fine,” Smith recalled.

“In the end, I was correct and the National Guard got involved.”

Bloomberg had initially said, “The NYPD is the only people we want on the street with guns.”

But spokesman Marc LaVorgna said the mayor never dropped the F-bomb and welcomed the Guard’s help in search-and-rescue missions — but thought the NYPD could handle security.

“They had a disagreement about the issue, but those words — that did not happen,” LaVorgna said.

Speaking of the disagreement, Smith said, “This is what friends do in the heat of the moment. Friends have heated discussions.”