The correct answer to your question is:
Debit Retained Earnings (market value × number of shares); credit Common Stock Dividend Distributable (number of shares × par value); credit Paid-In Capital in Excess of Par Stock Dividend (market value – par value) × number of shares