while whoever is not overtaken by the time for prayer should simply continue on his way and not make a point of stopping there.
Muhammad ibn Waḍḍāḥ and others report that ʿUmar ibn al-Khaṭṭāb ordered the tree beneath which the Prophet ﷺ accepted the pledge of allegiance to be cut down, because people had begun frequenting it; ʿUmar feared this might become a source of temptation for them.
The scholars—may Allah be pleased with them—differed regarding the practice of visiting such sites. Muhammad ibn Waḍḍāḥ said: “Mālik and other scholars of Madinah considered it disliked to visit those mosques and physical traces in the city, except for Qubāʾ and Uḥud. Sufyān al-Thawrī entered Jerusalem and prayed there, yet he did not pursue those particular spots, nor pray at them.”
These scholars therefore regarded the practice as wholly disliked, basing themselves on the report from ʿUmar—may Allah be pleased with him—and because it resembles praying at graves, which can lead to turning them into seasonal gatherings and to imitating the People of the Book. Furthermore, none of the Companions agreed with what Ibn ʿUmar did; nothing has been transmitted from the Rightly Guided Caliphs, nor from any of the Muhājirūn or Anṣār, indicating that they deliberately sought out the places where the Prophet ﷺ had stayed.