Short answer
For a medium dog, even a teaspoon of molasses is a significant amount of sugar, and a whole tablespoon is too much. Molasses is very high in sugar and potassium, which isn't toxic in a single small lick but can cause problems in larger quantities. Eating a tablespoon could lead to an upset stomach, vomiting, diarrhea, or a temporary spike in blood sugar. It's not an emergency for a healthy dog, but it's best avoided. If he seems unusually thirsty, lethargic, or has digestive issues, give your vet a call.
Molasses — Food safety facts
Feed with care · Dogs · full breakdown on the linked food page
High in sugar and potassium. Only used in tiny measured amounts in some recipes.
The full verdict, portion guidance and serving notes are collected on the Molasses food facts page.