Can someone please help me with this journal entry:

The company declared and distributed cash dividend totaling $6,000 to its shareholders.

I think the journal entry is this, am I right?

Dividends declared 6,000
Cash 6,000

Or is it

Dividends Payable 6,000
Cash 6,000