Abd al-Rahman bin Abi Dhubab says: Sayyiduna Uthman Ghani (may Allah be pleased with him) prayed four rak'ahs at Mina, and the people objected to this. He said: "O people! When I came to Makkah, I took a family there (i.e. I married), and I heard the Prophet (peace and blessings be upon him) saying: 'Whoever takes a family in a town should pray the prayer of a resident.'"
Ahmad recorded it.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 2948