Cash dividends are paid from retained earnings or accumulated profits. It is the profit not distributed as dividend in previous years.
Cash dividends can be paid even if company incurs loss in current year.
Retained Earnings DR
Dividend Payable CR
(To record the liability for dividend payment)
Dividend Payable DR
(To record payment of cash dividend)