"You have to find out who the government is before you go on a strike against Iran," Trump said, Axios reported.
Trump made the comments during a brief interview with a correspondent from the US outlet.
He expressed the view that Israel should not launch any further attacks on Iran until it has a stable government with a clear mandate.
Axios interpreted Trump's remarks as a possible setback for the efforts of outgoing Israeli Prime Minister Benjamin Netanyahu to remain in power.
The centrist Yashar party, led by Netanyahu rival Gadi Eisenkot, who has been tasked with forming a government, welcomed Trump's position.
"We support President Trump's call for the broadest possible national consensus before starting a war or launching a major military operation," the party said on Monday.
Talks between Eisenkot and Netanyahu about a possible power-sharing agreement involving a rotation in the office of prime minister broke down on Sunday.
Netanyahu's religious-nationalist government lost its parliamentary majority in the October 27 elections but continues in a caretaker capacity with responsibility for security and military affairs.
Critics accuse Netanyahu of being willing to accept or even encourage a further escalation of the conflict with Iran in order to remain in power.