How to activate clock on lock screen?
The thing you are searching is known as daydream. You must have changed its setting while doing something in settings. It can be any place but generally found under display setting.