My mother came to me hoping for something during the time of the treaty with Quraysh, and she was a polytheist. So I asked the Messenger of Allah ﷺ whether I should maintain ties with her.He replied, "Yes."The narrator added that she was a polytheist at the time of the pact with Quraysh, during the term they had agreed upon when they made their treaty with the Messenger of Allah ﷺ.
حدثنا يونس قال حدثنا ليث يعني ابن سعد عن هشام عن أبيه عن أسماء مثله وقال وهي مشركة في عهد قريش ومدتهم إذ عاهدوا رسول الله ﷺ