[Machine] Kisra gave a gift to the Messenger of Allah ﷺ and he accepted it. Qaysar also gave a gift to the Messenger of Allah ﷺ and he accepted it. The kings also gave him gifts and he accepted them. Al-Shafi'i, may Allah have mercy on him, said: "In the past, Abu Sufyan ibn Harb gave a gift to the Messenger of Allah ﷺ in the form of a cloak and he accepted it. The companion of Alexandria, Maria, the mother of Ibrahim, also gave him a gift and he accepted it. Others also gave him gifts and he did not differentiate between Muslims based on that."
أَهْدَى كِسْرَى إِلَى رَسُولِ اللهِ ﷺ فَقَبِلَ مِنْهُ وَأَهْدَى قَيْصَرُ إِلَى رَسُولِ اللهِ ﷺ فَقَبِلَ مِنْهُ وَأَهْدَتْ لَهُ الْمُلُوكُ فَقَبِلَ مِنْهُمْ قَالَ الشَّافِعِيُّ رَحِمَهُ اللهُ فِي الْقَدِيمِ قَدْ أَهْدَى أَبُو سُفْيَانَ بْنُ حَرْبٍ إِلَى رَسُولِ اللهِ ﷺ أَدَمًا فَقَبِلَ مِنْهُ وَأَهْدَى إِلَيْهِ صَاحِبُ الْإِسْكَنْدَرِيَّةِ مَارِيَةَ أُمَّ إِبْرَاهِيمَ فَقَبِلَهَا وَغَيْرُهُمَا قَدْ أَهْدَى إِلَيْهِ وَلَمْ يَجْعَلْ ذَلِكَ بَيْنَ الْمُسْلِمِينَ