It is further reported that after Imaam Shaafi‘ee (rahimahullah) received the money, he called for a barber and requested him to cut his hair. After the barber cut his hair, Imaam Shaafi‘ee (rahimahullah) gave him fifty dinaars from the five thousand dinaars. Thereafter, Imaam Shaafi‘ee (rahimahullah) took strips of cloth and tied them into small bags which he filled with gold coins. He continued to distribute these bags among the Quraish of Makkah Mukarramah until he returned home with less than one hundred gold coins remaining for himself from the five thousand.
(Manaaqib-ush-Shaafi‘ee lil-Bayhaqi pg. 2/226)