Shiva Purana
स्त्रिया वा पुरुषेणापि नियमाल्लिंगसन्निधौ ॥ अब्दजप्तमिदं स्तोत्रम्पुत्रदन्नात्र संशयः ॥ ६३ ॥
This hymn recited by a woman or a man with due observances in the presence of a phallic image for a year undoubtedly yields the birth of a son.
english translation
striyA vA puruSeNApi niyamAlliMgasannidhau ॥ abdajaptamidaM stotramputradannAtra saMzayaH ॥ 63 ॥
hk transliteration by Sanscript