Hafiz said this quote

Learn to thank God in good times instead of only praying to Him in times of trials and tribulations.