Is it recommended for a pilgrim to enter the Kaaba and pray inside?
Chapter on Ransom (Fidyah) and Penalty for Hunting
Al-Mughni
Book of Hajj
Primary text
It is recommended for one who has performed Hajj to enter the Sacred House (Kaaba) and perform two Rak'ahs of prayer therein, following the example of the Prophet, peace be upon him. This recommendation is established by the precedent set by the Prophet.