We study the mechanisms of the spin Hall effect (SHE) and anomalous Hall effect (AHE) in 3d ferromagnetic metals (Fe, Co, permalloy (Ni81Fe19; Py), and Ni) by varying their resistivities and temperature. At low temperatures where the phonon scattering is negligible, the skew scattering coefficients of the SHE and AHE in Py are related to its spin polarization. However, this simple relation breaks down for Py at higher temperatures as well as for the other ferromagnetic metals at any temperature. We find that, in general, the relation between the SHE and AHE is more complex, with the temperature dependence of the SHE being much stronger than that of AHE.