All perfect praise be to Allah, The Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad, sallallahu ‘alayhi wa sallam, is His slave and Messenger.
We implore Allah, The Exalted, to guide us and inspire us to do what helps us earn His pleasure. You should know that asking the dead person to fulfill a specific need is of two kinds: supplicating the dead person by saying, 'O so-and-so, guide me, bless me with such-and-such, fulfill my needs', or the like. This is considered an act of disbelief. The other kind is to ask the dead person to supplicate Allah in one's favor, and this is not disbelief; rather, it is a means that leads to it. Such an act is considered an act of minor Shirk (a minor form of associating partners with Allah), as was stated by Shaykhul-Islam Ibn Taymiyyah in his book Al-Qaa'idah Al-Jaleelah fi At-Tawassul wal-Waseelah. Some scholars held that the second kind is considered major disbelief; however, the most likely correct view in this regard is what we have mentioned. For more benefit, please refer to fatwa 348448.
Whenever you are confused about a religious matter, you should consult the trustworthy scholars who are known for their sincere adherence to the Quran and Sunnah. If they have different views, you should follow the opinion of the scholar who is the most trustworthy in your view. Before asking and knowing the ruling on the matter, you may say, "I do not know."
You must disregard Waswaas (obsessive satanic whisperings); verily, getting carried away with Waswaas, particularly in this regard, leads to evil consequences.
Allah knows best.