These hadeeths were mentioned by An-Nawawee – may Allah shower blessings on him – in the Book, Riyaad as-Saaliheen, regarding the merit of bidding a companion farewell, supplicating for him and requesting supplication from him. He cited the hadeeth of Umar bin Al-Khattab (may Allah be pleased with him) who wanted to perform the lesser Pilgrimage and then asked permission from the Prophet ﷺ who allowed him. He ﷺ then said, "O Brother! Do not forget us in your supplications" - and in another version – it says, "Add us – O Brother - in your supplications." He mentioned that At-Tirmidhi reported it and said that it is a Hasan Saheeh hadeeth. However, in reality, it is Da'eef (weak) and not authentically collected from the Prophet ﷺ.
Asking someone else to supplicate for us has categories:
The first category: To request the individual to pray for the general benefits of the Muslims; i.e., for something general. There is nothing wrong in this. On one Friday a man entered while the Prophet ﷺ was delivering the sermon and said, "O Messenger of Allah! Properties have been destroyed and the paths obstructed; beseech Allah to grant
us rain!” The Prophet ﷺ raised his hands and said, “O Allah grant us rain! O Allah, grant us rain! O Allah, grant us rain!” Allah gathered the rain clouds, they got spread everywhere, became large and it rained. The Prophet ﷺ had not descended from the Minbar when water drops from the rain started running down his beard – may Allah’s peace and blessings be upon him. The rain lasted an entire week.
On the next Friday, another man - or the same person -, entered and said, “O Messenger of Allah! Properties have been drowned and buildings destroyed; ask Allah to withhold it (rain) from us!” So, the Prophet ﷺ raised his hands and said, “O Allah! Around us, not upon us”; pointing to the outskirts of the city and saying, “Around us, not upon us.” In whichever direction he pointed to, the clouds cleared and separated till people came out walking in sunshine.(1)
Therefore, if you request a righteous person whose supplications you hope will be answered, to pray for something beneficial to the generality of the Muslims; then there is no blame in that since you have not asked for yourself.
The second category: To request a righteous person to pray for the praying person to benefit from the supplication. It does not bother him whether he gains from it, but it is incumbent on the person who was asked to supplicate to beseech Allah, the Mighty and Sublime, and depend on Allah inside his mind and understand well that Allah – and free is He from all imperfections and Exalted is He -, hears and answers supplications.
The point here is that, the purpose of asking for the supplication is for the benefit of this man. There is no blame in this as well since you have not asked him for your own benefit, but for his own gain. You desire that the righteous man should gain more righteousness by his supplicating to Allah the Mighty and Sublime and nearness to Him through the rewards and blessings.
The third category: To request supplication from someone else for
his own benefit. Some of the scholars hold this to be allowed; they say, there is no blame for a man to request a pious man to pray for him. However, Shaykh al-Islam Ibn Taimiyyah (may Allah shower blessings on him) said that, "It is not proper if the purpose is for your own benefit alone, because this could fall among the disparaged acts considering the fact that the Prophet ﷺ had his companions pledge to him not to ask anybody for anything.(1) Perhaps the person requesting the prayers from another individual would depend on the supplication of the individual forgetting to supplicate himself. And so, he says, "I had requested so-and-so who is a pious person to supplicate for me and once Allah grants this supplication, then that is sufficient." So he depends on others. And may be the person being asked to give the supplication begins to feel self-important that he is pious such that people ask for him to supplicate for them causing him harm.
In any case, this third category is differed upon; some among the scholars say: there is no blame in it that you say to a pious person, "O So-and-so, supplicate to Allah for me." Some others among them hold that it is not proper, and the best is to hold that view. May be he may even remind you of it as a favour he did to you. You might even feel demean before him to have asked him. And then, is there anything obstructing you from Allah? My brother, you should ask Allah by yourself without anyone setting in between you and Allah the Mighty and Sublime.
Why should you go to someone else and say, "Beg Allah for me" while nothing prevents you from asking Allah yourself? Allah the Exalted says:
"And your Lord said: invoke me [that is, believe in my oneness (Islamic monotheism)] (and ask Me for anything) I will respond to your (invocation)" (al-Gaafir: 60)
Allah alone grants success.