The datasheet recommends 0.22uF input and 0.1uf output ceramic disc capacitors.
The LM7805 might oscillate with 10uF or 100uF electrolytic capacitors.
Of course if the input was rectified AC then a huge main filter capacitor is needed in addition to the 0.22uF ceramic capacitor.