So [Solomon] smiled, amused at her speech, and said, "My Lord, enable me1 to be grateful for Your favor which You have bestowed upon me and upon my parents and to do righteousness of which You approve. And admit me by Your mercy into [the ranks of] Your righteous servants."2
Translation: Saheeh International (English)
1 More literally, "gather within me the utmost strength and ability."
2 Or "with Your righteous servants [into Paradise]."
When Solomon heard it saying this, he smiled due to this statement of his and he said, calling unto his Lord: “O Lord, enable me and inspire me to be grateful for Your favour which You gave to me and My parents, and enable me to do good actions which please you, and enter me amongst Your righteous servants”.