Turkish President Recep Tayyip Erdogan has pledged his support to U.S. President Donald Trump for using military action against the Syrian government, al-Masdar News reported.

This came after an informed source told CNN that Trump has told some members of Congress that he is considering military action in Syria in retaliation for this week's chemical attack.

The source added that the U.S. president recognizes the seriousness of the situation.

Erdogan has long called for Assad’s removal and allowed Syrian government’s opponent to illegally cross the border and fight the Syrian Arab Army.

On Tuesday, dozens of people were killed in a chemical attack in the Syrian town of Khan Shaykhun, in the northwestern province of Idlib.

The United States and its allies say Syrian government is responsible for the attacks.

This is while Iran warned against “rash judgment”, underlining that “propaganda purposes” were behind accusing the Syrian government.

“We strongly condemn any use of chemical weapons, irrespective of who used them or their victims,” Iranian Foreign Ministry Spokesman Bahram Qassemi said on Wednesday.

“Considering the transfer, stockpile and use of chemical weapons by terrorist groups in Syria, the Islamic Republic of Iran has always believed that despite the disarmament of the Syrian government through its full cooperation and under the supervision of a joint representative of the UN and the OPCW, ignoring the need for the chemical disarmament of terrorist groups has been a major flaw in the country's chemical disarmament process,” he added.