After the death of their parents, he had to take care of himself and his brother.
پس از مرگ پدر او به بغداد و نزد مهدی خلیفهٔ عباسی برده شد که او و برادرش را تحت سرپرستی خود قرار داد.