One of the most popular and widely used Shloka in Hinduism is
कराग्रे वसते लक्ष्मीः करमध्ये सरस्वती ।
करमूले तु गोविन्दः प्रभाते करदर्शनम् ॥
karAgre vasate lakShmIH kara-madhye sarasvatI |
kara-moole tu govindaH prabhAte kara-darshanam ||
Meaning: At the Top of the Hand (i.e. Palm) Dwell Devi Lakshmi and at the Middle of the Hand Dwell Devi Saraswati, At the Base of the Hand Dwell Sri Govinda; Therefore one should Look at one's Hands in the Early Morning and contemplate on Them.
It seems like another version with small modification also exist.
कराग्रे वसते लक्ष्मीः करमध्ये सरस्वती ।
करमूले स्थिता गौरी मंगलं करदर्शनम् ॥
karAgre vasate lakShmIH, kara-madhye saraswatI |
kara-moole sthitA gaurI, mangalaM kara-darshanam ||
The difference is instead of Lord Govinda, the second version mentions about Gauri at the base of the Hand.
Which Hindu scripture has the mention of the above shloka and which version is mentioned out of the above two?