NASAI-KUBRA 4915:
from al-Qāsim b. Muḥammad —
[Machine] "That I should free both of them, so I mentioned it to the Messenger of Allah ﷺ , and he said, 'Start with the boy before the girl.' And Muhammad ibn Bashshar said in his narration that the Prophet ﷺ said, 'If you free them both, then start with the man before the woman.'"
الكبرى للنسائي ٤٩١٥:
عن القاسم بن محمد —
أَنْ أُعْتِقَهُمَا فَذَكَرْتُ ذَلِكَ لِرَسُولِ اللهِ ﷺ فَقَالَ «ابْدَئِي بِالْغُلَامِ قَبْلَ الْجَارِيَةِ» وَقَالَ مُحَمَّدُ بْنُ بَشَّارٍ فِي حَدِيثِهِ فَقَالَ النَّبِيُّ ﷺ «إِنْ أَعْتَقْتِهِمَا فَابْدَئِي بِالرَّجُلِ قَبْلَ الْمَرْأَةِ»
hadithunlocked.com