In another report from him: Abdullah ibn Umar would pray four rak'ahs behind the imam at Mina, but when he prayed on his own, he would pray two rak'ahs. Ibn Khuzaymah also related it in his Sahih (954) through another chain from Ibn Umar.
Al-Tahawi recorded it in Sharh al-Ma'ani (1/244) through Malik, and before him Imam Muhammad in his Muwatta' (pp. 127–128), who said: “This is the view we follow when the imam is a resident and the man is a traveller; it is also the view of Abu Hanifah, may Allah have mercy on him.” His words, “when the imam is a resident,” imply—after all, they regard the implications of their shaykhs’ statements as authoritative—that if the imam is a traveller yet completes the prayer, as some Shafi'is do, then the traveller praying behind him should shorten the prayer rather than complete it. This contradicts what Ibn Umar, may Allah be pleased with him, did, as did other Companions.
Among them was Abdullah ibn Mas'ud—whose views the Hanafis largely adopt. Although he used to object to Uthman, may Allah be pleased with him, completing the prayer at Mina, and reproach him for it, as recorded in the two Sahihs, he nevertheless prayed four rak'ahs. This is reported in Sunan Abi Dawud (1960) and al-Bayhaqi (3/144), through Mu'awiyah ibn Qurrah, from his shaykhs, that Abdullah prayed four rak'ahs. He said: He was asked, “You criticized Uthman, yet then prayed four rak'ahs?!” He replied, “Disagreement is evil.”
This may mean that he prayed four rak'ahs by himself, or that he prayed them behind Uthman. Al-Bayhaqi’s narration explicitly states the latter; thus, it establishes the intended point all the more forcefully, as is evident to the scholars. Among them was Salman al-Farisi. Abu Ya'la al-Kindi narrated: “Salman set out on a military expedition with thirteen men from among the Companions of the Prophet, peace and blessings be upon him, and he was”