Narrated Narrated 'Aishah (RA) in al-Bukhari and Muslim , "When a pious person amongst them (the Jews and Christians) died they used to build a place of worship and prostration on his grave."
In the same Hadith is:
وَعَنْ أَبِي هُرَيْرَةَ - رضى الله عنه - قَالَ : { بَعَثَ اَلنَّبِيُّ - صلى الله عليه وسلم -خَيْلاً , فَجَاءَتْ بِرَجُلٍ , فَرَبَطُوهُ بِسَارِيَةٍ مِنْ سَوَارِي اَلْمَسْجِدِ } اَلْحَدِيثَ . مُتَّفَقٌ عَلَيْهِ . 11 - صحيح . انظر رقم (113) .
Narrated Narrated Abu Hurairah (RA):
The Prophet (ﷺ) sent an expedition of horsemen who came back with a man, they then tied him to one of the pillars of the mosque.