Ibn Taymiyyah reported: Abdullah ibn Mas’ud, may Allah be pleased with him, said, “As long as you remember Allah you are in prayer, even if you are in the market.”
Source: Majmū’ al-Fatāwá 14/215
عن ابن تيمية قَالَ عَبْدُ اللَّهِ بْنُ مَسْعُودٍ رضي الله عنه مَا دُمْت تَذْكُرُ اللَّهَ فَأَنْتَ فِي صَلَاةٍ وَلَوْ كُنْت فِي السُّوقِ
14/215 مجموع فتاوى ابن تيمية