Jarir urinated. He then performed ablution and wiped over the socks. He said: What can prevent me from wiping (over the socks); I saw the Messenger of Allah (doing so). They (the people) said: This (action of yours) might be valid before the revelation of Surat al-Ma’idah. He replied: I embraced Islam after the revelation of Surat al-Ma’idah. (Using translation from Abū Dāʾūd 154)
أَنَّ جَرِيرًا «بَالَ ثُمَّ تَوَضَّأَ وَمَسَحَ عَلَى الْخُفَّيْنِ» وَقَالَ مَا يَمْنَعُنِي أَنْ أَمْسَحَ وَقَدْ رَأَيْتُ رَسُولَ اللَّهِ ﷺ يَمْسَحُ قَالُوا إِنَّمَا كَانَ ذَلِكَ قَبْلَ نُزُولِ الْمَائِدَةِ قَالَ مَا أَسْلَمْتُ إِلَّا بَعْدَ نُزُولِ الْمَائِدَةِ