@parth_bhimani
You posted in the wrong section, please read the description of a section before you post. The section you posted in said NOT for your project.
Moved it here.
I suggest that you read How to get the best out of this forum. Pay special attention to the section how to post code. Next edit your post, select all code and apply the code tags as described.
Start by slowing down the SPI transfer rate so you have a chance of seeing the clock signal or change your loop so it is continuously transferring data without a pause. This will give you time to adjust the oscilloscope. Which pin are you monitoring?