Messenger of Allah ﷺ said, "The Prophet ﷺ Abraham migrated with Sarah. The people (of the town where they migrated) gave her Ajar (i.e. Hajar). Sarah returned and said to Abraham, "Do you know that Allah has humiliated that pagan and he has given a slave-girl for my service?"
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ هَاجَرَ إِبْرَاهِيمُ بِسَارَةَ فَأَعْطَوْهَا آجَرَ فَرَجَعَتْ فَقَالَتْ أَشَعَرْتَ أَنَّ اللَّهَ كَبَتَ الْكَافِرَ وَأَخْدَمَ وَلِيدَةً وَقَالَ ابْنُ سِيرِينَ عَنْ أَبِي هُرَيْرَةَ عَنِ النَّبِيِّ ﷺ فَأَخْدَمَهَا هَاجَرَ