You have to perform ablution to “go towards the Haram” Mosque with humility and reciting Talbiya frequently. You to have to enter the any door of the Masjide Haram , Place right foot first according to Sunnah with the intention of mind to make the I’atikaf (retreat), so unless you will be rewarded by retreat until remaining in the Sacred mosque. At the time of entering You will recite the following prayer بسم الله والصلوة والسلام علي رسول الله اللهم إغفرلي ذنوبي وإفتح لي أبواب رحمتك نويت سنة الإعتكاف”(Tirmidhi Shreef P.413).
When you reached inside of the Mosque sufficiently or entered fully You will recite الله أكبرthree times “لاإله إلاالله” three times ” and الحمد لله three time “praising الله سبحانه تعالي ” Some scholars said that when they are looking at الله بيتthey will recite orientation of Eid Prayer one time as الله اكبر لاإله إلاالله والله اكبر ولله الحمد praising Allah, “and maximizing the prayers.
At the time of looking on the Hram Mosque all prayers would be accepted by Allha تعاليسبحانه. (Shami, Volume 3 / p. 205), it is also recommended that you will call recite this prayer as: “Oh Allah! Oh my Lord accept my legitimate aspirations to my death and accept my that prayers which You like. Except these you can also, recite other prayers which You desired, You can ask , how long You can recite it, for your selves, for our families, and the people. You will earnestly will pray to Allah تعاليسبحانه , then Allah تعاليسبحانه will surely accept Your all prayers.