Sayyidah Ruqayqah (may Allah be pleased with her) narrates that when the Prophet (peace and blessings be upon him) came to Ta'if seeking support, he came to my house, and I offered him (peace and blessings be upon him) a drink of sawiq (barley gruel). He (peace and blessings be upon him) said: "O Ruqayqah, do not worship their idol, and do not pray to it." I said: "Then they will kill me." He (peace and blessings be upon him) said: "When they tell you to do so, say: My Lord is the Lord of this idol as well; and when you see it, turn your face away from it." Then the Messenger of Allah (peace and blessings be upon him) left me.
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 21032