Messages
Messages[symbol]
gives all the messages assigned to a particular symbol.
Examples
Basic Examples (2)
Get messages that have been explicitly defined for a function:
Get the messages for NDSolve that have been defined during the current session:
Typically, for system commands, messages are only loaded when they are required:

Wolfram Research (1988), Messages, Wolfram Language function, https://reference.wolfram.com/language/ref/Messages.html.
Text
Wolfram Research (1988), Messages, Wolfram Language function, https://reference.wolfram.com/language/ref/Messages.html.
CMS
Wolfram Language. 1988. "Messages." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Messages.html.
APA
Wolfram Language. (1988). Messages. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Messages.html