Hadithcore
Mishkat al-Masabih, 640

Salman said that he heard God’s Messenger say, “He who goes out early to Morning Prayer goes out with the standard of faith, but he who goes out early to the market goes out with the standard of Iblis.” Ibn Majah transmitted it.

وَعَنْ سَلْمَانَ قَالَ سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «مَنْ غَدَا إِلَى صَلَاةِ الصُّبْحِ غَدَا بِرَايَةِ الْإِيمَانِ وَمَنْ غَدَا إِلَى السُّوقِ غَدَا بِرَايَةِ إِبْلِيسَ» . رَوَاهُ ابْنُ مَاجَه

References1 variant
In-Book Reference
Book 4, Hadith 72