Nafi' narrates that Ibn Umar (may Allah be pleased with them both) urinated in the marketplace, then performed ablution and wiped over his socks, then offered prayer.
Hadith Referenceمسند الإمام الشافعي / كتاب الطهارة / 78
Hadith Takhrijصحيح: اخرجه البيهقي في معرفة السنن والآثار (420) ومالك في الموطأ، الطهارة، باب ما جاء في المسح على الخفين.