[Machine] Ali, if something comes out from the route of the male organ, then it is a boy. And if something comes out from the route of the female organ, then it is a girl.
عَلِيٌّ ؓ إِنْ بَالَ مِنْ مَجْرَى الذَّكَرِ فَهُوَ غُلَامٌ وَإِنْ بَالَ مِنْ مَجْرَى الْفَرْجِ فَهُوَ جَارِيَةٌ