The syntax of banner is as follow:
PSH-DXX (config) # banner motd {char} {banner text} {char}
where {char} is a special delimeter character that does not exist in the {banner text}. Everything contained between the first and second {char} characters, including carriage returns, is interpreted as the banner message. For example,
PSH-DXX (config)# banner motd #
******************************************
* Unauthorized access prohibited
******************************************
#
OR we can have this in some more detail like as shoen
PSH-DXX (config)# banner motd #
-------------------------------------------
Unauhorized Access Prohibited
-------------------------------------------
You have access $(hostname).$(domain)
You are accessing line $(line)
-------------------------------------------
Unauhorized Access Prohibited
-------------------------------------------
The output of the banner is as:

I hope it will be informative for you :)