All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad,
, is His slave and Messenger.
You are not sinful for having such imaginations, especially if you were forced because of your Waswaas – Obsessive Compulsive Disorder.
However, you must get rid of this disease because a believer should busy himself in what benefits him and should not spend his life daydreaming, and should not allow illusions to overcome him because this prevents him from achieving what benefits him and distracts him from more important matters.
Therefore, you should busy yourself when you are alone with the remembrance of Allah, the recitation and memorization of the Quran, acquisition of beneficial knowledge, and so forth. Also, you should supplicate Allah as much as possible to rid you from this disease.
It is also good to consult a trustworthy psychologist.
You should endeavor until you get rid of this disease. If you endeavor to do so, you will achieve your aspiration, Allah willing.
Allah Says (what means): {And those who strive for Us - We will surely guide them to Our ways.} [Quran 29:69]
Allah knows best.