It was narrated from Abu Rafi' that the Messenger of Allah (ﷺ) said:
"The partner has more right to what is near him, so long as he is still a partner." (RU)
English reference (RU): Vol. 3, Book 17, Hadith 2498 (RU)
Arabic reference (RU): Book 17, Hadith 2594 (RU)