These are the ruins of Masjid Bani Ghifar (Arabic: مسجد بني غفار), which commemorates where the Prophet (peace and blessings of Allah be upon him) had prayed. It is on the south-eastern side of Mount Sela.
References: Precious Jewels in describing the features of the Prophet’s holy city – Abdul Aziz Kaki