Prime Minister Dr Mahathir Mohamad, infuriated over the Johor executive council reshuffle, had considered stepping down, according to a source.

The source said the Bersatu chairperson revealed this during the party's supreme council emergency meeting on Monday night.

"He was disappointed and taken aback because the new menteri besar (Dr Sahruddin Jamal) did not follow his advice to keep the cabinet as it is," the source told Malaysiakini.

According to the source, Youth and Sports Minister Syed Saddiq Syed Abdul Rahman, who is also Bersatu Youth chief, had managed to convince Mahathir not to relinquish his post.

Malaysiakini could not reach Syed Saddiq for comment, but a source close to him confirmed this.

The source said Mahathir told the meeting that he was so incensed that morning – when the three new exco members were sworn in - that he wanted to resign.

This led other supreme council members to express unhappiness over the menteri besar's apparent insubordination.

"However, Mahathir had cooled down by the time the meeting started," added the source, who denied claims circulating online that the prime minister threatened to quit during the meeting.

On April 13, Johor ruler Sultan Ibrahim Sultan Iskandar reportedly set a precondition that the exco lineup must be reshuffled when a new menteri besar replaces Osman Sapian, who resigned after 11 months at the helm.

Mahathir, who has been locking horns with the Johor palace over various issues, said the sultan has no influence on this matter.

Prior to that, the premier said if rulers are allowed to decide on matters concerning posts, then Malaysia would not be a democratic nation.

Meanwhile, the source said the new menteri besar might have obliged the ruler's demand after consulting Bersatu president and Johor Bersatu leader Muhyiddin Yassin.

"Muhyiddin told the meeting that when the matter happened, he was abroad seeking medical treatment and was unaware of the party's decision.

"So when Sahruddin consulted Muhyiddin (while he was abroad), the latter's advice was the menteri besar should pick (excos) that he would feel comfortable working with," said the source.

The source claimed that what transpired was a case of miscommunication.

Yesterday, Malaysiakini reported that Muhyiddin had apologised to Mahathir and explained what had led to the reshuffle during the meeting.