Shiva Purana
प्रथमं विष्णवे दत्तं शंभुना लिंगसन्मुखे ॥ विष्णुना ब्रह्मणे दत्तं ब्रह्मणा सनकादिषु ॥ ३९ ॥
At the outset this instruction was given to Viṣṇu by Śiva in front of his phallic image. It was then given to Brahmā by Viṣṇu and to Sanaka and others by Brahmā.
english translation
prathamaM viSNave dattaM zaMbhunA liMgasanmukhe ॥ viSNunA brahmaNe dattaM brahmaNA sanakAdiSu ॥ 39 ॥
hk transliteration by Sanscript