Muwatta Malik 424
Shortening the Prayer
وَحَدَّثَنِي عَنْ مَالِكٍ، أَنَّهُ بَلَغَهُ أَنَّ عَطَاءَ بْنَ يَسَارٍ، كَانَ إِذَا مَرَّ عَلَيْهِ بَعْضُ مَنْ يَبِيعُ فِي الْمَسْجِدِ دَعَاهُ فَسَأَلَهُ مَا مَعَكَ وَمَا تُرِيدُ فَإِنْ أَخْبَرَهُ أَنَّهُ يُرِيدُ أَنْ يَبِيعَهُ قَالَ عَلَيْكَ بِسُوقِ الدُّنْيَا وَإِنَّمَا هَذَا سُوقُ الآخِرَةِ .
Yahya related to me from Malik that he had heard that if some one passed by Ata ibn Yasar in the mosque with something to trade, he would call him and ask, "What is the matter with you? What do you want?" If the man said that he wished to trade with him, he would say, "You need the market of this world. This is the market of the next world
Grading: Salim al-Hilali: Maqtu Daif
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.