Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:2:125

And ˹mention˺ when We made the House a place of return for the people and ˹a place of˺ security. And take, ˹O believers˺, from the standing place of Abraham a place of prayer. And We charged Abraham and Ishmael, ˹saying˺, "Purify My House for those who perform Tawaf and those who are staying ˹there˺ for worship and those who bow and prostrate ˹in prayer˺."  

And when We appointed the House, the Ka‘ba, to be a place of visitation, to which they flock from every direction, for the people, and a sanctuary, of safety for them from the injustice and attacks that befall other places: a person could come across his father’s killer there, and yet not act violently against him; and: ‘Take (ittakhidhū is also read ittakhadhū, making it a predicate), O people, to yourselves Abraham’s station, the founding stone he used when building the House, for a place of prayer’, so that you perform two units of prayer for the circumambulation; And We made a covenant with Abraham and Ishmael, We commanded them: ‘Purify My House, of graven images, for those that shall go round it and those that cleave to it, in ritual residence, to those who bow and prostrate themselves’, that is, those who pray: (al-rukka‘ and alsujūd are the plurals of rāki‘, ‘one bowing’, and sājid, ‘one prostrated’, respectively).
القرآن:٢:١٢٥

وَإِذْ جَعَلْنَا الْبَيْتَ مَثَابَةً لِلنَّاسِ وَأَمْنًا وَاتَّخِذُوا مِنْ مَقَامِ إِبْرَاهِيمَ مُصَلًّى ۖ وَعَهِدْنَا إِلَىٰ إِبْرَاهِيمَ وَإِسْمَاعِيلَ أَنْ طَهِّرَا بَيْتِيَ لِلطَّائِفِينَ وَالْعَاكِفِينَ وَالرُّكَّعِ السُّجُودِ  

{وإذ جعلنا البيت} الكعبة {مثابة للناس} مرجعا يثبون إليه من كل جانب {وأمنا} مأمنا لهم من الظلم والإغارات الواقعة في غيره، كان الرجل يلقى قاتل أبيه فيه فلا يهيجه {واتخذوا} أيها الناس {من مقام إبراهيم} هو الحجر الذي قام عليه عند بناء البيت {مصلى} مكان صلاة بأن تصلوا خلفه ركعتي الطواف، وفي قراءة بفتح الخاء خبر {وعهدنا إلى إبراهيم وإسماعيل} أمرناهما {أن} أي بأن {طهِّرا بيتي} من الأوثان {للطائفين والعاكفين} المقيمين فيه {والركع السجود} جمع راكع وساجد المصلين.