Former Attorney General and Minister of Justice, Martin Amidu has said former President John Mahamas advice to Kenya’s opposition leader Raila Odinga following his defeat in the August 8 election was motivated only with his own [Mahama] interests.

According to him, Mahama "benefitted from such a situation in the Presidential petition of 2013 and cynically thought President Uhuru Kenyatta would have the benefit of the docility of the Kenyan Supreme Court."

READ MORE: Mahama leads Commonwealth Observer Mission for Kenya's elections

The Supreme Court in Kenya has annulled the result of the country's recent presidential election.

Former President John Mahama advised Kenyan opposition leader, Raila Odinga, to go to court over the country's presidential election.

READ ALSO: Don't shed blood because of elections - Mahama to Kenyans

However, following the annulment of the presidential results by Kenya's Supreme Court in a 4-2 decision, and an order for a re-run in 60 days, some Ghanaians have taken to social media to troll Mahama.

They have accused him of executing his job poorly and that the cancellation of the August 8 vote is a proof.

But the citizen vigilante who has been a critic of the former President said he has no doubt that Mahama’s cynical advice to Mr. Odinga was informed by past decisions of the Kenyan Supreme Court.

READ ALSO: Mahama arrives in Kenya to monitor elections

"Coincidentally, the head of a group of the election observers is reported to be our own John Dramani Mahama whom activists of free, transparent and fair elections, and anti-corruption crusaders had accused during the 2016 Presidential election in Ghana of using his appointment powers under Articles 43 and 70 of our Constitution for a rigging agenda. Having won the 2012 Presidential elections by a razor thin edge vote of the Ghana Supreme Court, he was cynical in advising the losing party in the Kenyan elections to concede defeat or challenge the results in the Kenyan Supreme Court, in the belief that once incumbent Presidents are declared winners of an election their Supreme Courts normally docilely endorse the declarations of the Electoral Commission even in the face of the glaring rigging of the election.

READ MORE: Politics is not a matter of life and death - Mahama tells Kenyans

He said "John Dramani Mahama had benefitted from such a situation in the Presidential petition of 2013 and cynically thought his good friend, the President of Kenya Uhuru Kenyatta, whom he had invited as the special guest of honour during Ghana’s independent Celebrations in 2016, would have the benefit of the docility of the Kenyan Supreme Court just as he was the beneficiary of Ghana’s razor thin edge Supreme Court decision in 2013. I also have no doubt that John Dramani Mahama’s cynical advice to Mr. Odinga was informed by past decisions of the Kenyan Supreme Court where incumbents have been declared winners of the Presidential elections and his personal experience in Ghana," Martin Amidu said.