The polls did not return a clear majority for anyone, but independent candidates backed by Khan won 92 out of 264 seats making them the largest group. Khan ruled out alliances with the three largest parties, which means his candidate currently does not have the numbers to form government.

"Omar Ayub will be our candidate for the prime minister election, he has been nominated by Imran Khan" Asad Qaiser, a senior leader of Khan's Pakistan Tehreek-e-Insaaf (PTI) party told journalists after meeting the former premier in prison.

Qaiser said PTI would reach out to other parties to discuss supporting Ayub's candidature. Khan's opponents have already announced an alliance to form a minority government.

Khan's supporters ran as independents because they were barred by the election commission on technical grounds from contesting the polls under his party's electoral symbol.

Despite the ban and Khan's imprisonment for convictions on charges ranging from leaking state secrets to corruption, millions of the former cricketer's supporters came out to vote for him, even though he cannot be part of any government while he remains in prison.

Ayub is currently in hiding, and is wanted in various investigations by law enforcement, including charges of being a part of rioting that followed Imran Khan's arrest.

He contested and won a seat in the election despite his absence from the campaign. He had previously been a member of the party of Khan's main rival Nawaz Sharif as well as the ruling party of former military rule Gen. Pervez Musharraf.

Ayub is the grandson of Pakistan's first military dictator Ayub Khan who ruled Pakistan from 1958 to 1969.

(Reporting by Gibran Peshimam in Islamabad; Writing by Shilpa Jamkhandikar;Editing by Tomasz Janowski)