It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that Sayyidah Umm Sulaym (may Allah be pleased with her) came to the Prophet (peace and blessings be upon him) and said: "Teach me a few words with which I may supplicate in my prayer." He (peace and blessings be upon him) said: "Proclaim the greatness of Allah ten times, proclaim the glory (purity) of Allah ten times, and proclaim the praise of Allah ten times, then ask for whatever you wish; He (Allah Almighty) says: "Yes, yes.""
And Waki' (may Allah have mercy on him) narrated it from Ikrimah (may Allah have mercy on him), from Ishaq (may Allah have mercy on him).