Are muslims allowed to pray for Christians who passed away? ( or all people of the book)

I’ve heard we aren’t allowed to pray for disbelievers

You can pray in the sense that you appeal to Allah to deal with them in his infinite wisdom