No one undergoing a trial should say, "I am being tempted by God." For God is not tempted by evil, and He Himself doesn't tempt anyone.
References for James 1:13
But each person is tempted when he is drawn away and enticed by his own evil desires.
Then after desire has conceived, it gives birth to sin, and when sin is fully grown, it gives birth to death.
Don't be deceived, my dearly loved brothers.
Every generous act and every perfect gift is from above, coming down from the Father of lights; with Him there is no variation or shadow cast by turning.
By His own choice, He gave us a new birth by the message of truth so that we would be the firstfruits of His creatures.
References for James 1:18