Explanation And Theme Of A Hadith Regarding Islamic Knowledge
There is no problem with the two examples mentioned. This is because the intention is not standing against God or against the pleasure of God. It is not a rival to God.