ʿUyūn akhbār al-Riḍā
Hadith 352352 - وَبِهذَا الإسناد عَنْ عَلِىِّ بْنِ أَبِي طالِب أَنَّهُ ورث الخنثى من مَوْضِع مبالته.
31-352 According to the same documentation, Ali ibn Abi Talib (a.s.) said, “An intersexual person is recognized by the genitalia (for the purposes of determining their share of inheritance).