He claimed so
Mendeleev wrote each element's properties on cards and played a kind of solitaire with them. After three days with minimal sleep, he dozed off and reportedly saw the arrangement in a dream. Sleep deprivation may have been doing the creative work.