This would help you more than anything!
A wandering of the mind in prayer is an evil to be carefully avoided. I imagine there is no child of God but has continually to lament wandering thoughts — something coming in to divert the attention, and often carrying you miles away from the presence of the Lord. Even those who most grieve and regret this evil, find that it often comes and disturbs them. It meets them in the sanctuary, it meets them in family worship, it meets them in their private devotions. It is a weed that is ever growing, and no remedy has yet been found that can completely root it out of the garden of the heart.
Yet some guidance may be given in the matter. Strive to be very definite in your prayers. Think of what you most need, and then put it very distinctly before the Lord.
Also, endeavor always to speak as to a living person. If you could more fully realize and always recollect that when you pray, a living Redeemer and an omnipotent Friend bows down the ear to hear, that He is close by you, that you are not speaking into the air — but that you speak your words to one who as truly sees you and hears you as if you saw Him with your very eyes before you — this would help you more than anything!