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:11184ʿAbdullāh b. Mūsá b. Abū ʿUthmān al-Anmāṭī > al-Ḥakam b. Mūsá > Maslamah b. ʿUlay > Ibn Jurayj > ʿAṭāʾ And ʿAmrū b. Dīnār > Ibn ʿAbbās

[Machine] From the Messenger of Allah ﷺ, "Whoever sees something inappropriate in a row, let him rectify it with his own hands. If he cannot, then let him do so with his tongue. And if he cannot, then let him do so with his heart, and that is the weakest of faith."  

الطبراني:١١١٨٤حَدَّثَنَا عَبْدُ اللهِ بْنُ مُوسَى بْنِ أَبِي عُثْمَانَ الْأَنْمَاطِيُّ ثنا الْحَكَمُ بْنُ مُوسَى ثنا مَسْلَمَةُ بْنُ عُلَيٍّ ثنا ابْنُ جُرَيْجٍ عَنْ عَطَاءٍ وَعَمْرُو بْنُ دِينَارٍ عَنِ ابْنِ عَبَّاسٍ

عَنْ رَسُولِ اللهِ ﷺ «مَنْ نَظَرَ إِلَى فُرْجَةٍ فِي صَفٍّ فَلْيَسُدَّها بِنَفْسِهِ فَإِنْ لَمْ يَفْعَلْ فَمَرَّ مَارٌّ فَلْيَتَخَطَّ عَلَى رَقَبَتِهِ فَإِنَّهُ لَا حُرْمَةَ لَهُ»  


See similar narrations below:

Collected by Suyūṭī
suyuti:23397a
Request/Fix translation

  

السيوطي:٢٣٣٩٧a

"مَنْ نَظَرَ إِلَى فُرْجَةٍ فِي صَفّ، فَليَسُدَّها بِنَفْسِهِ، فإِنْ لَمْ يَفْعَلْ فَمَر (فمن) (*) مَارٌّ فَليَتَخَطَّ عَلَى رَقَبَتِهِ فإِنَّهُ لا حُرْمَةَ لَهُ".  

[طب] الطبرانى في الكبير عن ابن عباس