[Farewell Prayer at the Kaaba]
When you wish to bid farewell to the House (Kaaba), perform seven circumambulations (Tawaf) and pray two rak'ahs (units of prayer) anywhere you like within the Haram. Then proceed to the Hatim—the area between the door of the Kaaba and the Black Stone. Cling to the Kaaba’s curtains while standing, praise Allah سبحانه وتعالى, extol Him, and send blessings upon the Prophet Muhammad (peace be upon him and his family). Then say:
"O Allah سبحانه وتعالى, I am Your servant, the child of Your servant, the child of Your maidservant. You carried me on Your mounts, allowed me to traverse Your lands, and brought me to Your Sacred House. O Allah سبحانه وتعالى, it was within my hopes and expectations that You would forgive me. If, O my Lord عز وجل, You have already done so, then increase Your satisfaction with me and draw me closer to You. But if You have not yet done so, O my Lord عز وجل, then forgive me now, before my home becomes distant from Your House, while I remain neither disinclined to it nor seeking a substitute for it. This is the moment of my departure if You have granted me permission. O Allah سبحانه وتعالى, protect me from in front of me, behind me, beneath me, above me, to my right, and to my left, until You return me safely to my family. And when You bring me back to my family, do not forsake me. Suffice me with the provisions I need for my family and protect me from the burdens of Your creation."
When you reach the Bab al-Hanatin (a gate near the Haram), turn your face toward the Kaaba, prostrate to Allah سبحانه وتعالى, and ask Him to accept your pilgrimage and not make it your last visit to His House. Then, as you depart, say:
"Returning, repentant, praising, grateful to our Lord عز وجل, longing for Allah سبحانه وتعالى and returning to Him. Peace and blessings be upon Muhammad and his family in abundance. Allah سبحانه وتعالى is sufficient for us, and He is the best disposer of affairs."