أَخْبَرَنَا نُعَيْمُ بْنُ حَمَّادٍ، حَدَّثَنَا بَقِيَّةُ، عَنْ عَبْدِ اللَّهِ بْنِ عَبْدِ الرَّحْمَنِ القُشَيْرِيّ، قَالَ: قَالَ دَاوُدُ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: "قُلْ لِصَاحِبِ الْعِلْمِ يَتَّخِذْ عَصًا مِنْ حَدِيدٍ، وَنَعْلَيْنِ مِنْ حَدِيدٍ، وَيَطْلُبْ الْعِلْمَ، حَتَّى تَنْكَسِرَ الْعَصَا وَتَنْخَرِقَ النَّعْلَانِ".
Abdullah bin Abdur Rahman Al-Qushayri said: Prophet Dawud (peace be upon him) said: "Tell the seeker of knowledge to make an iron staff and iron shoes, and to continue seeking knowledge until the staff breaks and the shoes wear out."
Brief Explanation
(Commentary on Hadiths 580 to 584)
In this, there is encouragement to set out and travel in pursuit of knowledge, but this is not a statement of Dawud (alayhis salam); it could be a general admonition from an ordinary Muslim.