Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:13470[Chain 1] Muḥammad b. al-Sarī b. Mihrān al-Nāqid > ʿAmr b. Muḥammad al-Nāqid [Chain 2] Yūsuf al-Qāḍī > Muḥammad b. Abū Bakr al-Muqaddamī > Muḥammad b. ʿAbd al-Raḥman al-Ṭufāwī > al-Aʿmash > Mujāhid > Ibn ʿUmar

[Machine] "The Messenger of Allah ﷺ took hold of my shoulders and said, "Be in this world as a stranger or a traveler passing by."  

الطبراني:١٣٤٧٠حَدَّثَنَا مُحَمَّدُ بْنُ السَّرِيِّ بْنِ مِهْرَانَ النَّاقِدُ ثنا عَمْرُو بْنُ مُحَمَّدٍ النَّاقِدُ ح وَحَدَّثَنَا يُوسُفُ الْقَاضِي ثنا مُحَمَّدُ بْنُ أَبِي بَكْرٍ الْمُقَدَّمِيُّ قَالَا ثنا مُحَمَّدُ بْنُ عَبْدِ الرَّحْمَنِ الطُّفَاوِيُّ ثنا الْأَعْمَشُ عَنْ مُجَاهِدٍ عَنِ ابْنِ عُمَرَ قَالَ

أَخَذَ رَسُولُ اللهِ ﷺ بِمَنْكِبِي فَقَالَ «كُنْ فِي الدُّنْيَا كَالْغَرِيبِ أَوْ كَعَابِرِ سَبِيلٍ»