Originally Posted by Rayan77
It is shirk if you pray to that dead person, but if you pray for his forgiveness, then this is not shirk.
Also, there is a limit on seeking forgiveness from God for a dead person. For example, if someone died as a disbeliever, then no doubt is haram to pray for his forgiveness, but if he died as a Muslim, then there is no problem to pray for his forgiveness.
In case you dont know the meaning of shirk, shirk is when you ascociate something or someone with God.
I hope I have clarified everything for you