Make a backup your character's folder. Run the game and offer all your magical items to your god. Then choose "Save and Exit". Press [Alt] + [Tab] to switch out of the game and copy "Inventory_Item.xmd" from your backup folder to its
original location. After you return to the game, load your character.
You will have all your inventory back as well as faith points.
This does not work with gold.