Srimad Bhagvata Mahapurana: Book 10: Chapter 88: Verses 1-12
Lord Rudra rescued (from trouble)
The king (Pariksit) submitted : Those among the gods, demons and men that worship Lord Siva, who has spurned all enjoyments, are generally found to be wealthy and enjoying the pleasures of sense; but not so those who are devoted to Lord Visnu (the Spouse of the goddess of wealth and consequently endowed with all enjoyments). We are (according) eager to know how it is that the lot of those worshipping the two (Lord Siva and Lord Visnu) of contrary disposition is (quite) the opposite (of what might be expected). Great indeed is our doubt on this point. Sri Suka replied : (Pariksit!) Lord Siva ever remains united with His Sakti (Energy). He is invested with the three Gunas and is the deity presiding over Ahankara (the Cosmic Ego), which is threefold (in character), viz., Sattvika, Rajasika and Tamasika. Out of these three varieties of Ahankara are evolved the sixteen final evolutes (viz., the mind from the Sattvika type, the ten Indriyas from Rajasika and the five gross elements from the amasika). He who worships the deity presiding over anyone of these obtains access to all forms of (earthly) prosperity. Lord Visnu, on the other hand, is the Supreme Person Himself, (far) beyond Prakrti and devoid of the (three) Gunas (modes of Prakrti); He is omniscient and the witness (of all hearts). Anyone worshipping Him is rid of the (three) Gunas. (Pariksit I) at the conclusion of the Aswamedha sacrifices your grandfather, King Yudhisthira, while listening from (the lips of) the Lord to an exposition of (the various types of) sacred duties put this (very) question to Sri Krsna. (Pariksit!) Sri Krsna, the almighty Lord, who appeared in the race of Yadu for ensuring the highest good of men, felt (much) pleased (to hear the question) and spoke to the king, who was eager to listen (in the following strain).