Hadithcore
Musnad Ahmad, 1369
hasan· Darussalam

It was narrated that ‘Ali (رضي الله عنه) said:

The Messenger of Allah (ﷺ) said to me: “Do not follow one glance with another; you may be allowed the first but not the second.`

حَدَّثَنَا يَحْيَى بْنُ إِسْحَاقَ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ مُحَمَّدِ بْنِ إِسْحَاقَ، عَنْ مُحَمَّدِ بْنِ إِبْرَاهِيمَ، عَنْ سَلَمَةَ بْنِ أَبِي الطُّفَيْلِ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَ لِي رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لَا تُتْبِعْ النَّظَرَ النَّظَرَ فَإِنَّ الْأُولَى لَكَ وَلَيْسَتْ لَكَ الْأَخِيرَةُ‏.‏

References1 variant
In-Book Reference
Book 5, Hadith 768