Sarah Palin on Friday criticized Obama for inviting a 14-year-old Muslim teenager to the White House after his teachers accused him of building a bomb that was merely a homemade clock and who had him wrongly arrested.

Sarah Palin posted her controversial opinion on her Facebook page and slammed Obama and the 'reactionary-slash-biased media' for defending Ahmed Mohamed's 'dangerous wired-up bomb-looking contraption.'

'Yep, believing that's a clock in a school pencil box is like believing Barack Obama is ruling over the most transparent administration in history,' Palin wrote in the Facebook post in which she shared pictures of her kids' pencil boxes.

'Right. That's a clock, and I'm the Queen of England.'

Taking her stance: Sarah Palin, pictured in a September file photo, on Friday criticized Obama for inviting a 14-year-old Muslim teenager to the White House after his teachers accused him of building a bomb that was merely a homemade clock and who had him wrongly arrested

Comparison: Sarah Palin posted her opinion on her Facebook page and dumped on Obama and the 'reactionary-slash-biased media' for defending Ahmed Mohamed's 'dangerous wired-up bomb-looking contraption' in his pencil box (top right) that she compared alongside her children's pencil boxes

Palin, who's daughter Bristol one day earlier criticized Obama of egging on racial tension by inviting the teen to the White House, compared the incident against Mohammed to other incidents in which students were suspended even though they were apparently innocent.

She brought up an example of a student being suspended for bringing a squirt gun to school or for accidentally having ammo on school property because he'd recently gone deer hunting with his dad.

'Friends, consider the kids disciplined and/or kicked out of school for bringing squirt guns to school or taking bites out of a pop tart until it resembled (to some politically correct yahoo) a gun. Or the student out deer hunting with his dad early one morning who forgot he had a box of ammo in his truck when he parked in the school's lot later that day,' she wrote.

'Whereas Ahmed Muhammad, an evidently obstinate-answering student bringing in a homemade "clock" that obviously could be seen by conscientious teachers as a dangerous wired-up bomb-looking contraption (teachers who are told "if you see something, say something!") gets invited to the White House.'

The former Alaska governor said the invitation to the white house was out of line.

'By the way, President Obama's practice of jumping in cases prematurely to interject himself as the cool savior, wanting so badly to attach himself to the issue-of-the-day, got old years ago,' she wrote.

The nation has rallied round Ahmed Mohamed since he was accused of building a hoax bomb on Wednesday

Bristol Palin has slammed President Obama for inviting a 14-year-old boy to the White House after his arrest

'Remember him accusing police officers doing their job as "acting stupid"; claiming if he had a son, he'd look like Trayvon Martin; claiming he needed to know who was a fault in an industrial accident so he'd 'know who's a** to kick'; etc., etc. Those actions are about as presidential as his selfie stick,' she added.

Similarly, Bristol Palin has slammed President Obama for 'egging on' racial divisions by inviting the 14-year-old boy to the White House after Wednesday's incident.

The nation has rallied round Ahmed Mohamed since he was accused by his teachers of building a hoax bomb on Wednesday.

The Texan ninth-grader has received invitations from Google, Facebook, Space Camp, and his dream school MIT amid widespread concerns he was singled out for being Muslim.

Obama tweeted: 'Cool clock, Ahmed. Want to bring it to the White House? We should inspire more kids like you to like science. It's what makes America great.'

Support: The Texan ninth-grader has received invitations from Google, Facebook, Space Camp, and his dream school MIT amid widespread concerns he was singled out for being Muslim (pictured, left, during arrest)

Aisha U-kiu, president of American Muslim Professionals of Dallas and a graduate of MacArthur High School, speaks at a prayer vigil in support of Ahmed Mohamed on Thursday to raise awareness of prejudice

But according to mother-to-be Bristol, an invite from the White House is a step too far - as 'the police clearly made a mistake'.

'This is the kind of stuff Obama needs to STAY out of,' Palin wrote on her blog on Thursday.

'This encourages more racial strife that is already going on with the "Black Lives Matter" crowd and encourages victimhood.

'The police made a mistake, clearly. But why put more people against them? Why egg it on?

Crowds turned out in force to show their support for the 14-year-old in the wake of the scandal

Syed Qadri holds a sign that says I Stand With Ahmed as it is revealed he will not be going back to that school

'Childish games like this from our president have divided our country… even more today than when he was elected.'

Palin is in a minority as leaders across the nation rush to encourage Ahmed after he was handcuffed and accused of criminality.

Ahmed confirmed to Good Morning America that he has accepted Obama's invitation to come to the White House and meet the president, saying, 'I hope to see him soon.'

Asked if he was planning to bring his now-infamous clock with him, Ahmed revealed that Irving authorities have yet to return it to him.

'The clock is still in custody with the police,' he said. 'I want it back with my humility.'

Ahmed also confided that of all the prominent figures who have reached out to him offering their support, including Facebook CEO Mark Zuckerberg, Democratic presidential candidate Hillary Clinton and NASA officials, he was most thrilled to hear from MIT.

Muslim men kneel to pray in front of MacArthur High School at a prayer vigil in support of Ahmed Mohamed

The show of support comes as Apple co-founder Steve Wozniak hailed Ahmed as a 'modern day hero'

The case against Ahmed has been closed and dropped but he remains suspended from the school

'I dream of going there,' he said.

The local community of Irving, Texas, has also rallied round Ahmed, staging a prayer vigil on Thursday in front of MacArthur High School, where he was arrested.

And Apple co-founder Steve Wozniak has hailed Ahmed as a 'modern-day hero' whose talent will 'blossom' regardless of where he goes to school.

Adding to the growing voices of support, Wozniak said Ahmed's story reminded him of when he was at school and - far more mischievously than Ahmed - deliberately built a pretend bomb to prank his teacher.

The prank landed him in juvenile detention for a night where he taught his fellow detainees 'how they could remove the electric wires from an overhead fan and attach them to the metal bars [to] shock the guards,' he wrote on Facebook.