Mishkat al-Masabih 738
وَعَنِ ابْنِ عُمَرَ قَالَ: نَهَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنْ يُصَلَّى فِي سَبْعَةِ مَوَاطِنَ: فِي الْمَزْبَلَةِ وَالْمَجْزَرَةِ وَالْمَقْبَرَةِ وَقَارِعَةِ الطَّرِيقِ وَفِي الْحَمَّامِ وَفِي مَعَاطِنِ الْإِبِلِ وَفَوْقَ ظَهْرِ بَيْتِ اللَّهِ . رَوَاهُ التِّرْمِذِيُّ وَابْنُ مَاجَهْ
And from Ibn ʿUmar, who said: The Messenger of Allah ﷺ forbade praying in seven places: in the rubbish dump, the slaughterhouse, the graveyard, the middle of the road, in the bathhouse, in the resting places of camels, and on top of the House of Allah. Reported by at-Tirmidhi and Ibn Majah.