At declaration,
Retained Earnings - debit
Div. Payable - credit "this would be classified as a current liability (accrued expense)"
At payable date,
Div. Payable - debit
Cash - credit
Dividends are shown as a outflow on the Statement of Cash flows - financing when "Paid"