It is narrated from Nafi' (may Allah have mercy on him) that Sayyiduna Ibn Umar (may Allah be pleased with him) performed tayammum at a place called Mirbad al-Na'am and prayed, and that place is three miles from Madinah. Then he entered Madinah while the sun was high, and he did not repeat the prayer.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 1103