فَالْعَاكِفُ: الْمُقيِمُ بِهِ، وَالْبَادِي: الَّذِي يَحُجُّ إِلَيْهِ مِنْ غَيْرِ أَهْلِهِ.
“al-‘ākif” (the dweller) here means he who is living there while “al-bādī” (the stranger) means he who is not among the people of Mecca, comes for ḥajj from outside.