CAIRO -- A Cairo airport official says Hosni Mubarak's last prime minister who was defeated by an Islamist in the race for Egypt's new president has left the country for the United Arab Emirates.

The official says Ahmed Shafiq flew out of Egypt at dawn Tuesday, just hours after the country's prosecutor general opened an investigation into allegations that he wasted public funds during his eight-year-term as a civil aviation minister under Mubarak.

The official says Shafiq was accompanied by his three daughters and grandchildren. The official spoke on condition of anonymity because he was not authorized to talk to the media.

Muslim Brotherhood's candidate Mohammed Morsi narrowly defeated Shafiq in the presidential election runoff that deeply polarized the nation.

REACTIONS TO EGYPT'S ELECTIONS:

Loading Slideshow...
  • An Egyptian woman chants anti-Supreme Council for the Armed Forces (SCAF) slogans outside the Egyptian Parliament in Cairo, Egypt, Tuesday, June 19, 2012. The campaign of an Islamist who claimed victory in Egypt's presidential runoff says the Muslim Brotherhood and other political groups plan a mass demonstration later Tuesday to protest a military declaration seeking to curtail the powers of the next president. (AP Photo/Manu Brabo)

  • Egyptians argue during a protest near the Egyptian Parliament in Cairo, Egypt, Tuesday, June 19, 2012. The campaign of an Islamist who claimed victory in Egypt's presidential runoff says the Muslim Brotherhood and other political groups planned a mass demonstration later Tuesday to protest a military declaration seeking to curtail the powers of the next president. (AP Photo/Manu Brabo)

  • Anti-Riot soliders sit behind a closed gate barring entry to the Egyptian Parliament in Cairo, Egypt, Tuesday, June 19, 2012. (AP Photo/Manu Brabo)

  • Egyptian activists shout slogans against military rule in front of the parliament compound in Cairo, Egypt, Tuesday, June 19, 2012. (AP Photo/Amr Nabil)

  • Anti-riot soldiers sit behind a closed gate barring entry to the Egyptian Parliament in Cairo, Egypt, Tuesday, June 19, 2012. Egypt's highest court has ordered the country's Islamist-dominated parliament dissolved, saying its election about six months ago was unconstitutional. (AP Photo/Amr Nabil)

  • A family supporting Egyptian presidential candidate Mohammed Morsi flash the "V" sign during celebrations of their candidate's claimed victory, in Tahrir, Square, Cairo, Egypt Monday, June 18, 2012. (AP Photo/Nasser Nasser)

  • Supporters of Egyptian presidential candidate Mohammed Morsi chant slogans and wave national flags during celebrations of their candidate's claimed victory, in Tahrir Square, Cairo, Egypt Monday, June 18, 2012. (AP Photo/Nasser Nasser)

  • Supporters of Egyptian presidential candidate Mohammed Morsi gather around two motorcyclists spinning a rickshaw and a motorcycle during celebrations of their candidate's claimed victory, in Tahrir Square, Cairo, Egypt Monday, June 18, 2012. (AP Photo/Nasser Nasser)

  • An Egyptian vendor displays pins of Muslim brotherhood candidate Mohammed Morsi and Arabic that reads, "revival" in Tahrir Square, Cairo, Egypt, June 18, 2012. (AP Photo/Amr Nabil)

  • Egyptian supporters of Muslim brotherhood candidate Mohammed Morsi celebrate in Tahrir Square, Cairo, Egypt, June 18, 2012. (AP Photo/Amr Nabil)

  • Egyptian supporters of Muslim brotherhood candidate Mohammed Morsi hold a poster with Arabic that reads, "'Mohammed Morsi, president for Egypt" in Tahrir Square, Cairo, Egypt, June 18, 2012. (AP Photo/Amr Nabil)

  • An Egyptian man holds the Quran as he celebrates Islamist candidate Mohammed Morsi's apparent victory in Tahrir Square, Cairo, Monday, June 18, 2012. (AP Photo/Manu Brabo)

  • Egyptian supporters of Muslim brotherhood candidate Mohammed Morsi celebrate his apparent victory as they hold flowers in Tahrir Square, Cairo, Monday, June 18, 2012. (AP Photo/Amr Nabil)



Related on HuffPost: